moonstone/ Labeled Icon Button
An Icon that acts like a Button decorated 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 LabeledIconButton from '@enact/moonstone/LabeledIconButton';Members
LabeledIconButtonComponent
A Moonstone-styled icon button component with a label.
Usage:
<LabeledIconButton icon="star" labelPosition="after">
Favorite
</LabeledIconButton>import LabeledIconButton from '@enact/moonstone/LabeledIconButton';LabeledIconButtonBaseComponent
An icon button component with a label.
import {LabeledIconButtonBase} from '@enact/moonstone/LabeledIconButton';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:
labeledIconButton- The root component classicon- The icon component classlabel- The label component classlarge- Applied to asize='large'buttonselected- Applied to aselectedbuttonsmall- Applied to asize='small'button
Disables voice control.
The voice control group label.
The voice control intent.
The voice control label.
Flip the icon horizontally, vertically or both.
The icon displayed within the button.
Selects the component.
Setting
selectedmay be useful when the component represents a toggleable option. The visual effect may be customized using the css prop.
LabeledIconButtonDecoratorHigher-Order Component
Adds Moonstone specific behaviors to LabeledIconButtonBase.
import {LabeledIconButtonDecorator} from '@enact/moonstone/LabeledIconButton';