Blossom UI

Menubar

Menubar component, a row of menus like a desktop app with shortcuts, checked items and full keyboard navigation.

How to use it

Run npx @blossomui/react add menubar, or copy src/components/UI/Menubar/Menubar.tsx into your React project and import it.

import { Menubar } from './components/ui/Menubar'

Props

MenubarItem

PropTypeDescription
id (required)string
label (required)string
iconReactNode
shortcutstringKeyboard shortcut shown on the right, for example "Ctrl+S". It is only a hint: you handle the key yourself.
onSelect() => void
checkedbooleanShows a check before the item. Use it for options that are on or off.
dangerboolean
disabledboolean
separatorbooleanDraws a line above this item.

MenubarMenu

PropTypeDescription
id (required)string
label (required)string
items (required)MenubarItem[]

MenubarProps

PropTypeDescription
menus (required)MenubarMenu[]
colorstringAccent color of the highlighted item: any CSS color. Without it the component uses `--blossom-accent`.
labelstringAccessible name of the bar.
classNamestring

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree