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.
| Prop | Type | Default | Description |
|---|---|---|---|
| mode | IslandMode | Current mode when controlled: "idle", "call", "timer" or "music". | |
| defaultMode | IslandMode | "idle" | Starting mode when uncontrolled. |
| onModeChange | (mode: IslandMode) => void | Called with the new mode whenever it changes. | |
| controls | boolean | true | Show the built-in mode switcher below the pill. |
| className | string | Extra classes added to the outer element. |