Blossom UI

Navbar

Navbar component with a brand, links, actions and a responsive mobile menu.

How to use it

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

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

Props

NavbarLink

PropTypeDescription
label (required)string
href (required)string
activebooleanMarks the link of the page that is open.

NavbarProps

PropTypeDescription
classNamestringExtra classes for the bar, for example to change the offset when it is sticky.
labels{ navigation?: string; openMenu?: string; closeMenu?: string }Texts of the component. Pass only the ones you want to change, for example to translate it.
colorstringAccent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default.
brand (required)ReactNode
links (required)NavbarLink[]
actionsReactNodeButtons shown at the right on a wide screen. On a narrow one they move inside the menu.
alwaysVisibleActionsReactNodeButtons that stay in the bar at every width, for example the cart.
breakpointnumberWidth in pixels under which the links and `actions` collapse into the menu button.
stickybooleanKeep the bar at the top while the page scrolls.

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