Document Fan
ProNewSpread a stack of file covers into a selectable fan, with a real link to the selected attachment.
Installation
pnpm dlx shadcn@latest add @viewport/document-fan
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| title* | stringAttachment group title. | — |
| documents* | Document[]File titles, formats, cover colors, descriptions and destination URLs. | — |
Accessibility
- A button toggles the fan. Each file has a named selector and the selected attachment has a native link.