ui/BodyText

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';
Properties
centered
Boolean

Centers the contents.

Applies the centered CSS class which can be customized by theming.

Default: false
css
Object

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 name

  • centered - Applied when centered prop is true

ArrayBooleanFunctionModuleNumberObjectString