Skip to Content
Kokonut UI

NV-07Navigation

Marking Menu

A radial menu you hold to open or flick to pick blind, built with React and Motion.

Install with
lucide-react, motion

PRODocs Search and more like it are in Kokonut UI Pro

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.

npx shadcn@latest add @kokonutui/marking-menu

Or add it by hand: install its packages, then copy the source from Copy code 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

items
MarkingMenuItem[]Default built-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.

children
ReactNode

The surface the menu opens over. Defaults to a small demo page.

className
string

Extra classes for the root element.

MarkingMenuItem

idrequired
string
labelrequired
string
iconrequired
LucideIcon

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.