@antadesign/anta
    Preparing search index...

    Function TextUnreviewed

    • Light-DOM text with priority, tone, truncation, and optional expansion.

      Renders <a-text> with priority-aware colors for content and links. inline selects inline-block layout; truncate clamps text with an ellipsis. Pair expandable with truncate to let the reader reveal all content. Link underlines use 0.5px at 75% alpha, 1px at full alpha on hover, and restore the resting underline while active.

      External CSS renders text and truncation before element registration. The browser element measures overflow and owns expansion off-DOM. Expandable Text places a-button before a-text-content in Tab order. Granular expansion also requires @antadesign/anta/elements/a-button; automatic tooltips require @antadesign/anta/elements/a-tooltip.

      Parameters

      Returns any

      <Text priority="secondary">Secondary emphasis</Text>
      
      <Text truncate={3} expandable>A long description that the reader can expand.</Text>