ui/ Body Text
Text block component to be customized by a theme or application.
import BodyText from '@enact/ui/BodyText';Members
BodyTextComponent
A simple, unstyled text block component.
import BodyText from '@enact/ui/BodyText';BodyTextBaseComponent
A simple, unstyled text block component, without BodyTextDecorator applied.
import {BodyTextBase} from '@enact/ui/BodyText';Properties
Centers the contents.
Applies the
centeredCSS class which can be customized by theming.Default: falseThe type of component to use to render the item. May be a DOM node name (e.g 'div', 'p', etc.) or a custom component.
Default: 'p'Called with a reference to the root component.
When using ui/BodyText.BodyText, the
refprop is forwarded to this component ascomponentRef.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:
bodyText- The root class namecentered- Applied whencenteredprop istrue
BodyTextDecoratorHigher-Order Component
Applies BodyText behaviors.
import {BodyTextDecorator} from '@enact/ui/BodyText';