Dynamic Island
ProNewMorphing pill island that transitions smoothly between idle, agent thinking, voice waveform, deploy progress, and done.
Installation
pnpm dlx shadcn@latest add @viewport/dynamic-island
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 |
|---|---|---|
| state* | IslandStateActive morphing state of the pill. | — |
| title | stringPrimary status text for the active state. | — |
| subtitle | stringOptional secondary detail, e.g. elapsed time or progress. | — |
| progress | numberProgress percentage (0-100) shown in the `upload` state. | 68 |
| className | string | — |
Accessibility
- Exposed as a polite status region so state changes are announced cleanly.
- Uses tabular numerals for upload progress.
- Width morphing, blur transitions, and equalizer bars stop under reduced motion.