Skip to content
Component detail view

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

Install CLI
npx smoothui-cli add dynamic-island

Features

  • Expand/collapse with the portfolio spring, focus blur and press shader
  • Use the named StatusIsland export 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

AttributeElementPurpose
aria-labelView buttonsDescribes each view option (e.g., "idle", "ring", "timer")
aria-pressedView buttonsIdentifies 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

Improved by

Eduardo Calvo's avatar

Powered by

motion.dev
lucide.dev