Components
ExpandableText
Long copy clamped to a fixed height that fades out at the cut, with a More/Less toggle that animates it open. The toggle only appears when the content actually overflows.
Usage
Best practices
Use it for secondary prose such as a product description or a review; keep headings and anything the reader must see outside it.
Set
collapsedHeightin rem to a whole number of lines at the text's line height, so the cut lands between lines.Reach for
Collapsiblewhen the hidden part is separate content behind a labelled trigger rather than the rest of one passage.