// Type definitions for ui/BodyText import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef"; import * as React from "react"; type Omit = Pick>; type Merge = Omit> & N; export interface BodyTextBaseProps { /** * Centers the contents. * * Applies the `centered` CSS class which can be customized by . */ centered?: boolean; /** * The type of component to use to render the item. May be a DOM node name (e.g 'div', 'p', etc.) or a custom component. */ component?: React.ComponentType; /** * Called with a reference to the root component. * * When using , the `ref` prop is forwarded to this component as `componentRef` . */ componentRef?: object | Function; /** * 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` */ css?: object; } /** * A simple, unstyled text block component, without applied. */ export class BodyTextBase extends React.Component< Merge, BodyTextBaseProps> > {} export interface BodyTextDecoratorProps extends ui_ForwardRef_ForwardRefProps {} export function BodyTextDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export interface BodyTextProps extends Omit< Merge, "componentRef" > {} /** * A simple, unstyled text block component. */ export class BodyText extends React.Component< Merge, BodyTextProps> > {} export default BodyText;