Type alias TextProps

TextProps: {
    breakMode?: TextBreakModes;
    componentProps?: ReactTextProps;
    style?: StyleProp<TextStyle>;
    text?: string;
    type?: TextTypes;
}

Props for Text component

Type declaration

  • Optional breakMode?: TextBreakModes

    If set will not wrap text and use break mode (tail is normal use)

  • Optional componentProps?: ReactTextProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • Optional style?: StyleProp<TextStyle>

    Style to set on the item

  • Optional text?: string

    Text to render

  • Optional type?: TextTypes

    Type of text to render (style of Carbon) body-compact-02 is default

Generated using TypeDoc