@antadesign/anta
    Preparing search index...

    Type Alias ExpandModeUnreviewed

    ExpandMode:
        | { expandable?: never; collapsible?: never }
        | { expandable: boolean; collapsible?: boolean }

    Truncation / expansion axis. expandable only takes effect with truncate; collapsible only with expandable — so the type forbids collapsible unless expandable is set (a dynamic expandable={cond} is still allowed).

    Type Declaration

    • { expandable?: never; collapsible?: never }
    • { expandable: boolean; collapsible?: boolean }
      • Unreviewedexpandable: boolean

        Show a fade hint and chevron over the truncated text and let the user expand it by clicking the chevron region or pressing Enter while the chevron has keyboard focus. Only takes effect together with truncate. On its own, expanding is one-way — the control is removed once expanded; add collapsible for a two-way toggle.

      • Optional Unreviewedcollapsible?: boolean

        Let the reader collapse back after expanding: the chevron becomes a "Show more" / "Show less" toggle that stays visible while expanded. Only takes effect together with expandable.