Menubar
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
Menubar
className
React.ComponentProps<typeof MenubarPrimitive.Root>
MenubarCheckboxItem
classNamechildrenchecked
React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>
MenubarContent
classNamealign= "start"alignOffset= -4sideOffset= 8
React.ComponentProps<typeof MenubarPrimitive.Content>
MenubarGroup
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof MenubarPrimitive.Group>
MenubarItem
classNameinsetvariant= "default"
React.ComponentProps<typeof MenubarPrimitive.Item> & { inset?: boolean; variant?: "default" | "destructive"; }
MenubarLabel
classNameinset
React.ComponentProps<typeof MenubarPrimitive.Label> & { inset?: boolean; }
MenubarMenu
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof MenubarPrimitive.Menu>
MenubarPortal
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof MenubarPrimitive.Portal>
MenubarRadioGroup
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof MenubarPrimitive.RadioGroup>
MenubarRadioItem
classNamechildren
React.ComponentProps<typeof MenubarPrimitive.RadioItem>
MenubarSeparator
className
React.ComponentProps<typeof MenubarPrimitive.Separator>
MenubarShortcut
className
React.ComponentProps<"span">
MenubarSub
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof MenubarPrimitive.Sub>
MenubarSubContent
className
React.ComponentProps<typeof MenubarPrimitive.SubContent>
MenubarSubTrigger
classNameinsetchildren
React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & { inset?: boolean; }
MenubarTrigger
className
React.ComponentProps<typeof MenubarPrimitive.Trigger>