# use expandable, 21st-codehagen--prism-ui component by Codehagen

A custom React hook for creating smooth expandable/collapsible elements with spring animations using Framer Motion. Parameters - `initialState` (boolean, opti

> Page: https://ui.eneawork.it/comp/21st-codehagen--prism-ui/use-expandable
> Markdown: https://ui.eneawork.it/comp/21st-codehagen--prism-ui/use-expandable.md

- Library: [21st-codehagen--prism-ui](/components/lib/21st-codehagen--prism-ui)
- HTML page: https://ui.eneawork.it/comp/21st-codehagen--prism-ui/use-expandable

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-codehagen--prism-ui/use-expandable.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
