Marking Menu - React Component | Kokonut UI
Marking Menu
A radial menu you hold to open or flick to pick blind, built with React and Motion.
Install with
npx shadcn@latest add https://kokonutui.com/r/marking-menu.json
Installation
Marking Menu is a free, open-source React component in the Kokonut UI Navigation collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/marking-menu.tsx, so the code is yours to change.
Or add it by hand: install its packages, then copy the source from above into components/kokonutui/marking-menu.tsx.
npm install lucide-react motion
Usage
import MarkingMenu from "@/components/kokonutui/marking-menu";
export default function Example() {
return <MarkingMenu />;
}
Props
itemsMarkingMenuItem[]
Defaultbuilt-in
Up to eight destinations, laid out clockwise from the top.onSelect(item: MarkingMenuItem) => void
Called with the item picked, by menu, flick or keyboard.childrenReactNode
The surface the menu opens over. Defaults to a small demo page.classNamestring
Extra classes for the root element.
MarkingMenuItem
idrequiredstringlabelrequiredstringiconrequiredLucideIcon
Dependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react |
^0.556.0 |
npm, installed by the CLI |
motion |
^12.23.25 |
npm, installed by the CLI |
cn from lib/utils.ts |
shadcn init | |
| React | 19 |
Your app |
| Tailwind CSS | 4 |
Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.