Skip to content

    Browse components

    Dynamic Island

    A squircle pill that eases into a slab when tapped, swaps its content on the way, and glows red on alert.

    Credit: Calamansi UI (MIT)

    Open
    Customize
    calamansi
    white
    slate
    citrus

    Installation

    npx shadcn@latest add @glint-ui/dynamic-island

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/dynamic-island.json

    Usage

    import { DynamicIsland } from "@/components/ui/dynamic-island";
    
    <DynamicIsland
      icon={<Music2 className="size-3.5" />}
      title="Solaris · Citrus Beat"
      trailing={<span>2:48</span>}
      expandedContent={<Player />}
    />

    Props

    PropTypeDefaultDescription
    variant"calamansi" | "white" | "slate" | "citrus""calamansi"Surface palette.
    pulsebooleanfalseAmbient pulse dot in compact and idle states.
    interactivebooleantrueTap or Enter/Space toggles compact and expanded.
    state"idle" | "compact" | "expanded" | "alert"—Controlled state.
    defaultState"idle" | "compact" | "expanded" | "alert""compact"Initial state when uncontrolled.
    onStateChangeReactNode—`(state) => void`, fired when a tap asks to change state.
    iconReactNode—Primary icon, shown in a chip tinted from the surface ink.
    leadingReactNode—Leading slot used when no `icon` is given.
    titleReactNode—Label in compact and alert states.
    trailingReactNode—Trailing slot (timer, badge, waveform).
    expandedContentReactNode—Content shown when expanded.
    labelstring"Dynamic island"Accessible name of the toggle.
    classNamestring—Extra classes for the root element.