Read more
Long text kept to a few lines until asked for: it opens to its full height, closes to a faded edge, and the button appears only when needed.
Invoices now match payments across currencies. When a payment arrives in a different currency from its invoice, the rate on the payment date is used and any difference is booked to FX gains and losses, so the invoice closes in one step.
Bank feeds refresh every 15 minutes instead of hourly, and rules can now match on the counterparty's IBAN. Exports keep your column order, and the audit trail shows who changed a rule and when.
When to use
- Descriptions, reviews and release notes in lists.
- Profile bios and comments.
When not to use
- The main text of a page; let people read it.
Installation
pnpm dlx shadcn@latest add @caliper/read-more
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ReadMore
3 props
Also accepts the native props of its root element and a ref.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-expanded, aria-controls and aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/read-more.mdThe index of every part is at /llms.txt.