moonstone/ Labeled Icon
An Icon ecorated with a label.
You may specify an image or a font-based icon by setting the icon to either the path
to the image or a string from an iconList.
import LabeledIcon from '@enact/moonstone/LabeledIcon';Members
LabeledIconComponent
A Moonstone-styled icon component with a label.
Usage:
<LabeledIcon icon="star" labelPosition="after">
Favorite
</LabeledIcon>import LabeledIcon from '@enact/moonstone/LabeledIcon';Wrapped with: moonstone/LabeledIcon.LabeledIconDecorator
LabeledIconBaseComponent
A basic LabeledIcon component structure without any behaviors applied to it.
import {LabeledIconBase} from '@enact/moonstone/LabeledIcon';Extends: ui/LabeledIcon.LabeledIconBase
Properties
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
labeledIcon- The root component classlabel- The label component classicon- The icon component class
LabeledIconDecoratorHigher-Order Component
Adds Moonstone specific behaviors to LabeledIconBase.
import {LabeledIconDecorator} from '@enact/moonstone/LabeledIcon';Includes: ui/LabeledIcon.LabeledIconDecorator
Includes: moonstone/Skinnable.Skinnable
ArrayBooleanFunctionModuleNumberObjectString