BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/dynamic-island

dynamic-island

cult-ui/dynamic-island
UnverifiedComponent

iOS-style dynamic island component with expandable content and smooth animations

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/dynamic-island.json

Source

registry/default/ui/dynamic-island.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/dynamic-island.json · first 6 KB
1"use client"
2
3import React, {
4 createContext,
5 ReactNode,
6 useCallback,
7 useContext,
8 useEffect,
9 useReducer,
10 useRef,
11 useState,
12} from "react"
13import { AnimatePresence, motion, useWillChange } from "motion/react"
14
15const stiffness = 400
16const damping = 30
17const MIN_WIDTH = 691
18const MAX_HEIGHT_MOBILE_ULTRA = 400
19const MAX_HEIGHT_MOBILE_MASSIVE = 700
20
21const min = (a: number, b: number) => (a < b ? a : b)
22
23export type SizePresets =
24 | "reset"
25 | "empty"
26 | "default"
27 | "compact"
28 | "compactLong"
29 | "large"
30 | "long"
31 | "minimalLeading"
32 | "minimalTrailing"
33 | "compactMedium"
34 | "medium"
35 | "tall"
36 | "ultra"
37 | "massive"
38
39const SIZE_PRESETS = {
40 RESET: "reset",
41 EMPTY: "empty",
42 DEFAULT: "default",
43 COMPACT: "compact",
44 COMPACT_LONG: "compactLong",
45 LARGE: "large",
46 LONG: "long",
47 MINIMAL_LEADING: "minimalLeading",
48 MINIMAL_TRAILING: "minimalTrailing",
49 COMPACT_MEDIUM: "compactMedium",
50 MEDIUM: "medium",
51 TALL: "tall",
52 ULTRA: "ultra",
53 MASSIVE: "massive",
54} as const
55
56type Preset = {
57 width: number
58 height?: number
59 aspectRatio: number
60 borderRadius: number
61}
62
63const DynamicIslandSizePresets: Record<SizePresets, Preset> = {
64 [SIZE_PRESETS.RESET]: {
65 width: 150,
66 aspectRatio: 1,
67 borderRadius: 20,
68 },
69 [SIZE_PRESETS.EMPTY]: {
70 width: 0,
71 aspectRatio: 0,
72 borderRadius: 0,
73 },
74 [SIZE_PRESETS.DEFAULT]: {
75 width: 150,
76 aspectRatio: 44 / 150,
77 borderRadius: 46,
78 },
79 [SIZE_PRESETS.MINIMAL_LEADING]: {
80 width: 52.33,
81 aspectRatio: 44 / 52.33,
82 borderRadius: 22,
83 },
84 [SIZE_PRESETS.MINIMAL_TRAILING]: {
85 width: 52.33,
86 aspectRatio: 44 / 52.33,
87 borderRadius: 22,
88 },
89 [SIZE_PRESETS.COMPACT]: {
90 width: 235,
91 aspectRatio: 44 / 235,
92 borderRadius: 46,
93 },
94 [SIZE_PRESETS.COMPACT_LONG]: {
95 width: 300,
96 aspectRatio: 44 / 235,
97 borderRadius: 46,
98 },
99 [SIZE_PRESETS.COMPACT_MEDIUM]: {
100 width: 351,
101 aspectRatio: 64 / 371,
102 borderRadius: 44,
103 },
104 [SIZE_PRESETS.LONG]: {
105 width: 371,
106 aspectRatio: 84 / 371,
107 borderRadius: 42,
108 },
109 [SIZE_PRESETS.MEDIUM]: {
110 width: 371,
111 aspectRatio: 210 / 371,
112 borderRadius: 22,
113 },
114 [SIZE_PRESETS.LARGE]: {
115 width: 371,
116 aspectRatio: 84 / 371,
117 borderRadius: 42,
118 },
119 [SIZE_PRESETS.TALL]: {
120 width: 371,
121 aspectRatio: 210 / 371,
122 borderRadius: 42,
123 },
124 [SIZE_PRESETS.ULTRA]: {
125 width: 630,
126 aspectRatio: 630 / 800,
127 borderRadius: 42,
128 },
129 [SIZE_PRESETS.MASSIVE]: {
130// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/default/ui/dynamic-island.tsx

Facts

Registry
cult/ui
Type
registry:ui
Access
Unverified
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-11
Last confirmed
today

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsUnverified2 deps
ai-instructions-demoai-instructions-democult/uiComponentsUnverifiedno deps
animated-numberanimated-numbercult/uiComponentsUnverified1 dep
animated-number-demoanimated-number-democult/uiComponentsUnverifiedno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsUnverifiedno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsUnverifiedno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsUnverified1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsUnverifiedno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex