Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Document Fan

ProNew

Spread 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

PropTypeDefault
title*string

Attachment 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.