Radial Menu

Plus trigger fans sketch actions in an arc.

<RadialMenu size="md" radius={88} items={[/* ... */]} roughness={1.5} />

CLI install

npx doodleui-react add radial-menu

Usage

import { RadialMenu } from "doodleui-react";

<RadialMenu
  aria-label="Tools"
  items={[
    { id: "crop", icon: <span>#</span>, label: "Crop" },
    { id: "text", icon: <span>T</span>, label: "Text" },
  ]}
/>

Click the central trigger to open and close the menu. Item onSelect runs your handler but leaves the menu open until you toggle the trigger again.

Props

PropTypeDefaultNotes
itemsRadialMenuItem[]—Actions with id, icon, label, optional onSelect / disabled.
open / defaultOpen / onOpenChangeboolean / (open) => voiduncontrolled falseControlled or uncontrolled open state. Toggle via trigger only.
radiusnumbersize presetDistance in px from trigger center to item centers.
size"sm" | "md" | "lg""md"Trigger and item diameter preset.
aria-labelstring"Open menu"Accessible name for the central trigger button.
animate / SketchPropsboolean / SketchPropsprovider / themeDraw-in, roughness, seed, sketchColor, and related sketch props.