@antadesign/anta
    Preparing search index...

    Type Alias TextProps

    TextProps: BaseProps & {
        priority?: "primary" | "secondary" | "tertiary" | "quaternary";
        tone?:
            | "neutral"
            | "brand"
            | "info"
            | "success"
            | "warning"
            | "critical"
            | string & {};
        size?: "small"
        | "medium"
        | "large";
        inline?: boolean;
        truncate?: boolean | number;
    } & ExpandMode

    Type Declaration

    • Optional Unreviewedpriority?: "primary" | "secondary" | "tertiary" | "quaternary"

      Controls text emphasis, from primary (strongest) to quaternary. See Tones × priorities for examples.

      secondary
      
    • Optional Unreviewedtone?: "neutral" | "brand" | "info" | "success" | "warning" | "critical" | string & {}

      Selects a text palette. A CSS color defines a custom tone. See Tones × priorities for examples.

      neutral
      
    • Optional Unreviewedsize?: "small" | "medium" | "large"

      Sets font size and line height: small 13/16 px, medium 15/20 px, and large 17/24 px.

      medium
      
    • Optional Unreviewedinline?: boolean

      Lets Text sit within a line as an inline block.

    • Optional Unreviewedtruncate?: boolean | number

      Adds an ellipsis at the line limit. true limits text to one line, a positive integer sets the line count, and false or numbers below 1 disable truncation. Clipped text shows a tooltip when expansion is off. A nested <Tooltip> replaces it, and an empty tooltip suppresses it.