DynamicNotification
ExperimentalExperimental — the contract and the rendering can change without notice. Own the installed copy before shipping it.Dynamic Island-style AI notification pill with a thinking state that morphs into a reply bubble — token-driven surface, WebGL Siri glass, or real refractive liquid glass.
Composition
The preferred shape for composing the installed agent from its exported parts.
Parts
Exported compound parts from the installed source.
DynamicNotification├── DynamicNotificationIsland├── DynamicNotificationGlass├── DynamicNotificationLiquid├── DynamicNotificationPill├── DynamicNotificationIndicator├── DynamicNotificationContent├── DynamicNotificationTitle├── DynamicNotificationMessage├── DynamicNotificationReply├── DynamicNotificationReplyInput├── DynamicNotificationReplySubmit└── DynamicNotificationCloseEvery version ships from this one registry item, so the install command is identical — the picker only swaps the documented composition; switching versions later is a call-site change, not a reinstall.
npx shadcn@latest add http://127.0.0.1:3000/r/refined/dynamic-notification.jsonUsage
import { DynamicNotification, DynamicNotificationContent, DynamicNotificationGlass, DynamicNotificationIndicator, DynamicNotificationIsland, DynamicNotificationMessage, DynamicNotificationPill, DynamicNotificationReply, DynamicNotificationReplyInput, DynamicNotificationReplySubmit,} from "@/components/refined-ui/dynamic-notification";// Wire the island to a Mastra agent: surface the latest assistant message as the notification,// send the inline reply back through your agent client. `loading` holds the "thinking" blob// (aurora animating) while the agent streams, then the answer reveals with the word cascade.export function Example({ latestAssistantText, sendMessage, isResponding,}: { latestAssistantText: string; sendMessage: (text: string) => void; isResponding: boolean;}) { return ( <DynamicNotification variant="glass" loading={isResponding} onReply={({ value, clear }) => { sendMessage(value); clear(); }} > <DynamicNotificationIsland> <DynamicNotificationGlass /> <DynamicNotificationPill> <DynamicNotificationIndicator /> Assistant </DynamicNotificationPill> <DynamicNotificationContent> <DynamicNotificationMessage>{latestAssistantText}</DynamicNotificationMessage> <DynamicNotificationReply> <DynamicNotificationReplyInput placeholder="Answer…" /> <DynamicNotificationReplySubmit /> </DynamicNotificationReply> </DynamicNotificationContent> </DynamicNotificationIsland> </DynamicNotification> );}Installed dependencies
Installed with this agent because the visible component depends on them; they are support files, not separate product surfaces.
src/registry/hooks/use-dynamic-notification.tsHooksrc/registry/sources/refined/dynamic-notification-glass.tsSupportsrc/registry/sources/refined/dynamic-notification-liquid.tsSupportsrc/registry/sources/refined/dynamic-notification.cssSupportRaw code
Primary installed agent source (shared by every version)
Primitives
This agent composes these library primitives, installed under components/refined-ui/ui/*.