Shell
Launcher
The floating button that opens the panel, with an unread badge.
Install
npx shadcn@latest add https://ui.inflection.network/r/launcher.jsonPulls in utils automatically.
Usage
Props
| Name | Type | Description |
|---|---|---|
| onClick* | () => void | Toggle the panel. |
| open | boolean | Swaps the icon to a close cross and hides the badge. |
| unread | number | Shown as a badge up to 9, then “9+”. Zero renders nothing.Default: 0 |
| side | "right" | "left" | Which corner it sits in.Default: "right" |
* required