Dev Design Library

Expandable text

Long text clamped to a few lines with a soft fade that glides open with Read more and closes with Show less, shown only when the text overflows.

Expandable text preview
Library
Arc Library
Framework
React
Type
ui
License
MIT
Dependencies
lucide-react, motion
Install
npx shadcn@latest add https://uiarc.dev/r/expandable-text.json
Files
  • registry/components/expandable-text/expandable-text.tsx
  • registry/components/expandable-text/expandable-text.module.css
Source
https://github.com/kuratlielia/arc-library

Categories

More from Arc Library