灵动岛

iOS 风格的灵动岛胶囊组件,在多个实时活动视图间变形切换,外壳弹性缩放并带模糊交叉淡化。

9:41

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/dynamic-island

API 参考

DynamicIsland

view
string | null

Active view id. `null` shows the compact pill.

compact?
ReactNode

Compact pill content, shown when no view is active.

children?
ReactNode

DynamicIslandView elements.

className?
string

DynamicIslandView

id
string

Matches the parent `view` prop when active.

className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.