Blossom UI

Navigation menu

Navigation menu component with mega menu panels of grouped links, featured blocks and keyboard navigation.

How to use it

Run npx @blossomui/react add navigation-menu, or copy src/components/UI/NavigationMenu/NavigationMenu.tsx into your React project and import it.

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

Props

NavigationLink

PropTypeDescription
label (required)string
descriptionstringSmall text under the label.
href (required)string
iconReactNode

NavigationGroup

PropTypeDescription
titlestringTitle of the column.
links (required)NavigationLink[]

NavigationItem

PropTypeDescription
id (required)string
label (required)string
hrefstringMakes the item a plain link, without a panel.
groupsNavigationGroup[]Columns of links shown in the panel.
featuredReactNodeAnything you want in the panel, for example a featured card. It is shown before the columns.

NavigationMenuProps

PropTypeDescription
items (required)NavigationItem[]
activeIdstringId of the item that is the current page.
hoverDelaynumberMilliseconds to wait before opening a panel on hover, so crossing the bar does not flash the panels.
colorstringAccent color of the active item: any CSS color. Without it the component uses `--blossom-accent`.
labelstringAccessible name of the navigation.
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