Dynamic island

A pill that morphs between states on one spring. Size and corner radius move together, and the content blurs and scales between them.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

DynamicIsland3D props

PropTypeDefaultDescription
modeIslandModeCurrent mode when controlled: "idle", "call", "timer" or "music".
defaultModeIslandMode"idle"Starting mode when uncontrolled.
onModeChange(mode: IslandMode) => voidCalled with the new mode whenever it changes.
controlsbooleantrueShow the built-in mode switcher below the pill.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks