Dynamic Status Island
A black capsule that morphs its silhouette between live activities — recording with a level meter, a focus timer with pause, an upload with a progress hairline, a success tick — size and radius on one crisp spring while content cross-fades with a little blur.
Try it: Pick a state under the island; pause the timer from inside it.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/dynamic-status-island.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/dynamic-status-island. You can also copy the source into components/ui/dynamic-status-island.tsx (view on GitHub).
Usage
import { DynamicStatusIsland } from '@/components/ui/dynamic-status-island'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
state / defaultState / onStateChange | 'idle' | 'recording' | 'timer' | 'uploading' | 'success' | 'idle' | Controlled or uncontrolled activity. |
progress | number (0–1) | auto | Upload progress; auto-advances to success when omitted. |
idleLabel / fileName | string | — | Copy for the idle and upload states. |
showControls | boolean | true | Render the state picker under the island. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Product UI components
- Detent Sheet
An Apple-style bottom sheet resting at peek, half and full detents — velocity-aware drag with rubber-banding, the background recedes and dims as it rises, and a grabber that also works with tap and…
- Glass Segmented Control
An iOS-style segmented control whose selected thumb is a lifted glass pill that springs between segments with a press squish — native radio semantics, arrow keys and an opaque reduced-transparency…
- Vibrancy Context Menu
A macOS-grade context menu on regular glass that blooms from the exact pointer position, flips near the edges, glides a highlight capsule between rows, and blinks the chosen item once before…
- File Drop Uploader
A calm dropzone that lifts and tints on drag-over, then gives each file its own row with a spring progress hairline, a tick that pops on completion, and errors that say what went wrong with one-tap…
- Deploy Timeline
A build pipeline that reads like a calm status page: dots resolve to spinners to ticks, the rail fills as steps complete, elapsed times tick in tabular figures, each row expands into logs, and…
- Rolling Number Stepper
A quantity field whose changed digits roll in the direction of travel, accelerates on press-and-hold like a hardware stepper, and nudges sideways with a reason at its bounds. A real spinbutton you…