ui/ Slottable
Exports the ui/Slottable.Slottable Higher-order Component (HOC).
import Slottable from '@enact/ui/Slottable';
Members
SlottableHigher-Order Component
ui/Slottable.Slottable is a Higher-order Component that allows wrapped components to
separate children into pre-designated 'slots'. To use Slottable, you must configure it by passing in
a config object with the slots
member set to an array of slot names. Any children whose
slot
or defaultSlot
property matches a named slot or whose type matches a named slot will be placed
into a property of the same name on the wrapped component.
import Slottable from '@enact/ui/Slottable';
ArrayBooleanFunctionModuleNumberObjectString