Circle Menu
A radial navigation menu that expands in a circular pattern with smooth spring animations and hover effects.
Install using CLI
npx shadcn@latest add "https://obsidianui.dev/r/circle-menu.json"Install Manually
1
Install dependencies
2
Add util file
Create a file lib/utils.ts:
3
Copy the source code
Copy the code into components/ui/circle-menu.tsx
Usage
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| items | { label, icon, href?, onClick? }[] | - | Array of menu items |
| openIcon | React.ReactNode | <Menu /> | Icon when closed |
| closeIcon | React.ReactNode | <X /> | Icon when open |
