Skip to content
Browse docs and components

Dynamic Island

dynamic-island

A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.

Responsive

Install

$npxshadcnadd@forme/dynamic-island

Adds the component, its registry dependencies, and the token stylesheet you import once.

Usage

import { DynamicIsland } from "@/components/forme/dynamic-island/dynamic-island";

<DynamicIsland view={view} announce={`Now showing ${view}`}>
  {view === "timer" ? <Timer /> : <NowPlaying />}
</DynamicIsland>

When to use

Reach for it

  • A single live status that changes shape with its content: a timer, a call, the track that is playing.
  • A compact notification surface that grows for a moment and settles back.

Use something else

  • Content people need to read at length — it is a pill, sized to its content, not a panel.
  • More than one at a time. Two islands compete for the same glance.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

DynamicIsland

A black pill that morphs to fit whatever it is showing: a timer, a call, the song that is playing, a notification.

PropTypeDefaultDescription
view*string—Identifies what is showing. Change it and the island morphs to fit the new content — the key is what tells it the content is new, not just updated.
children*ReactNode—
announcestring—A short description of the current view, announced politely.
classNamestring—

Accessibility

  • announce is read through a polite status region whenever view changes, so the change is heard as well as seen.
  • It is black with white content in both themes, like other media chrome, and keeps that contrast either way.

Motion

  • The box morphs to the new size on a layout spring while the content swaps through a short blur crossfade.
  • The radius is set inline so the corners stay round mid-morph instead of stretching.
  • Reduced motion swaps the content and the size in one frame.