// Type definitions for moonstone/BodyText import { SkinnableProps as moonstone_Skinnable_SkinnableProps } from "@enact/moonstone/Skinnable"; import { BodyTextProps as ui_BodyText_BodyTextProps } from "@enact/ui/BodyText"; import * as React from "react"; type Omit = Pick>; type Merge = Omit> & N; export interface BodyTextBaseProps extends ui_BodyText_BodyTextProps { /** * Centers the contents. * * Applies the `centered` CSS class which can be customized by . */ centered?: boolean; /** * 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 */ css?: object; /** * Toggles multi-line ( `false` ) vs single-line ( `true` ) behavior. `noWrap` mode automatically enables so long text isn't permanently occluded. */ noWrap?: boolean; /** * Sets the text size to one of the preset sizes. Available sizes: 'large' (default) and 'small'. */ size?: "small" | "large"; } /** * A simple text block component. * * This component is most often not used directly but may be composed within another component as it is within . */ export class BodyTextBase extends React.Component< Merge, BodyTextBaseProps> > {} export interface BodyTextDecoratorProps extends moonstone_Skinnable_SkinnableProps {} export function BodyTextDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export interface BodyTextProps extends Merge {} /** * A simple text block component, ready to use in Moonstone applications. * * `BodyText` may be used to display a block of text and is sized and spaced appropriately for a Moonstone application. * * Usage: * ``` I have a Ham radio. There are many like it, but this one is mine. ``` */ export class BodyText extends React.Component< Merge, BodyTextProps> > {} export default BodyText;