Skip to content
Premium & Brand

Dynamic Island

A compact live-activity pill that morphs between views.

Import

tsx
import { DynamicIsland } from "@cronus-ui/ui";
bash
npx cronus-ui add dynamic-island

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component DynamicIslandDefault layout:inline style:dynamic-island {
  label "default"
  text "Idle"
  text "Active"
}

page "/audit/dynamic-island/default" type:custom {
  use DynamicIslandDefault
}

API Reference

Generated from the component's exported types.

DynamicIslandProps

Extends Omit<HTMLAttributes<HTMLDivElement>, "children">

Skip DynamicIslandProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>—Ref forwarded to the underlying DOM node.
views*
DynamicIslandView[]——
value
string—Controlled active view id.
defaultValue
string—Uncontrolled initial value.
onValueChange
(id: string) => void—Called when the value changes.
className
string—Additional class names merged onto the root.
id
string—DOM id of the root element.