Label

Type: React component

Label is used to display textual content on a single line.

When the content of Label matches the width of its container, it truncates the content. If it is desired to wrap your textual content over multiple lines, consider using Text instead.

Props

  1. children

    (Required)

    Type: ReactNode

  2. colorName

    (Optional)

    Default value

  3. flex

    (Optional)

    Type: FDS~Flex

    Default value

  4. isBold

    (Optional)

    Default value

  5. isBlock

    (Optional)

    Type: Boolean

    Whether or not this renders as a block or inline block.

    Default value

  6. isItalic

    (Optional)

    Type: FDS~IsItalic

    Default value

  7. letterSpacing

    (Optional)

    Default value

  8. textTransform

    (Optional)

    Default value

  9. tooltipContent

    (Optional)

    Default value

  10. size

    (Optional)

    Type: String

    The size of font to render. The possible values are:

    • 's'

    • 'm'

    • 'inherit'

    Defaults to 'm'.

    Default value

  11. userSelect

    (Optional)

    Default value