Skip to content

Dynamic Island

Free

A pill at an edge of the screen that grows to fit a notice, a call, or a song, like the Dynamic Island on iPhone, then shrinks back.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Render the root with the views. The app sets view to a name, or to null for the idle shape. A view with dismissAfterMs goes by itself.

The sample also uses Button. One command adds them with this item:

copy-link.tsx

DynamicIsland

<div>
PropTypeDefaultDescription
viewstring | null—The name of the active DynamicIslandView (controlled). null: the idle pill.
defaultViewstring | nullnullThe view at first render when view is not set (uncontrolled). Default: null, the idle pill.
onViewChange—Called with the next view: a DynamicIslandTrigger press, or a dismiss (Escape, a press outside).
placement"bottom""top""top"The edge the island hangs from. top (default): it grows down from the top center, as on iOS. bottom: it grows up from the bottom center (a phone page with the island above the home bar), and a swipe down closes a view. Place the root at that edge.
align"center""end""start""center"Where across the root the shape grows from. center (default): from the middle, as on iOS. start and end: from that side (right to left aware), for a shape in a corner (a notice at the top end of a desktop app, a button at the bottom end that grows into a panel). With end, a DynamicIslandBubble leaves from the start side.
idle"hidden""pill""pill"The shape at rest with no view. pill (default): the 126 × 37 idle pill stays. hidden: the idle size is 0, so a view grows out of nothing and folds back to nothing (a notice or a status on a page with no camera). The root then takes no space in the page.
scheme"dark""inherit""dark"The color scheme of the content. dark (default): the content takes the dark look of the components on the black shape. inherit: the page scheme, for a light surface (data-[scheme=inherit]:[--dynamic-island-surface:var(--popover)] on the root).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DynamicIslandView

<div>
PropTypeDefaultDescription
nameRequiredstring—The view's name: it shows while the root view equals it.
dismissTostring | null—The view that Escape and a press outside go to (null: the idle pill). Leave it out for a view that stays until the app changes it (a timer, a call), and for a view that a page button shows again or hides: that button is outside, so its pointerdown would close the view first.
dismissAfterMsnumber—The time the view shows before the island goes to dismissTo (the idle pill when it has none), in ms: a notice that goes by itself. It counts from the morph to this view, waits while a hover pointer is over the island or focus is in it, and starts again from the full time when they leave. A new key on the view starts the full time again (the same notice a second time). Leave it out for a view that stays.
styleMotionStyle—Styles of the content box (Motion style: plain CSS or motion values).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DynamicIslandCompact

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DynamicIslandLeading

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DynamicIslandTrailing

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DynamicIslandTrigger

<button>
PropTypeDefaultDescription
classNamestring—
viewstring | null—The view to show on press (null: the idle pill). Leave it out to only run onClick.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

DynamicIslandBubble

<div>
PropTypeDefaultDescription
openRequiredboolean—Shows the bubble: it splits out of the pill end, and merges back in when it turns false.
styleMotionStyle—Styles of the circle (Motion style: plain CSS or motion values).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when one place on the page shows a live status that changes, and the shape must grow from the old content to the new one.
  • Give each view a name. The app sets view to the name, or to null for the idle shape.
  • Use dismissAfterMs for a notice that goes by itself. A new key on the view shows the same notice again with the full time.
  • For a stack of messages that can show at the same time, use a Toast.
  • For a message that must stay on the page, use an Alert.
EnterOn a trigger, shows its view and moves focus into it.
SpaceOn a trigger, shows its view and moves focus into it.
EscCloses a view that has dismissTo, and returns focus to where it came from.

Only the active view renders. A view that leaves is inert and aria-hidden while it fades, so Tab and a screen reader skip it.

A DynamicIslandTrigger is a Base UI Button over the whole shape, with a 44px target on touch (hit-area) and an outline focus ring 2px out from the shape. Give it an aria-label.

A trigger press moves focus into the next view: its first control, else the view box. Escape and a press outside close a view with dismissTo, and focus goes back to where it came from.

A timed view waits while a mouse pointer is over the island or focus is in it, and starts again from the full time when both leave. So a person who reads or acts never loses the view.

The island announces nothing by itself. Put words that a screen reader must hear in the page text next to it.

Morph
island · the shape springs to the size of the next view, and keeps its speed when the view changes mid-way
Content
fade · the next content blurs in 50ms after the change; the old content leaves on popup-exit
Press and hover
island · the shape scales to 0.96 on a press and 1.02 on a mouse hover, from the edge it hangs from
Bubble
island · a second circle splits out of the pill end, with a liquid neck while it moves
  1. AddedDynamic Island.
Open the release