Dynamic Island
Apple-inspired Dynamic Island React component with smooth spring animations. Expandable notification pill for alerts, music players, and status updates.
~1.7 kB
Last updated: March 7, 2026
Installation
npx smoothui-cli add dynamic-islandFeatures
- Expand/collapse with the portfolio spring, focus blur and press shader
- Use the named
StatusIslandexport for a resting pill that opens on hover or tap and closes with Escape or an upward flick - Five built-in views: weather, call, timer, notification, and music
- Controlled or uncontrolled view selection, with custom content for idle, calls, and timers
Portfolio scenes
The demo includes Working, Dog walk, Weekend, Asleep, New song, Theme, Sound and Reading. The song and reading progress are local samples, so the demo works without a Spotify login or an article feed.
Accessibility
ARIA Attributes
| Attribute | Element | Purpose |
|---|---|---|
aria-label | View buttons | Describes each view option (e.g., "idle", "ring", "timer") |
aria-pressed | View buttons | Identifies the current view |
Press Escape while a view button is focused to return to idle.
Reduced Motion
This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the view and its selection highlight switch immediately.
Props
Created by
Powered by
© 2026 SmoothUI