Hex Core JS
    Preparing search index...

    Type Alias TruncatedTextProps

    TruncatedTextProps: {
        isExpanded?: boolean;
        lines?: number;
        setOverflows?: React.Dispatch<React.SetStateAction<boolean>>;
    } & Partial<ClassNameProps & StyleProps & ChildrenProps>

    Type Declaration

    • OptionalisExpanded?: boolean

      Controls whether to turn off fixed-line mode.

    • Optionallines?: number

      The number of lines of text to display. Passing a value of 0 or Infinity will not limit the number of lines displayed and only individual words that overflow will be truncated.

    • OptionalsetOverflows?: React.Dispatch<React.SetStateAction<boolean>>

      Set state function for overflows. Use TruncatedText.useTruncatedText.