43 Pro components and page blocks

Get Pro

Classic Navbar

New

Preview

Customize

Left
Two

Usage

import { ClassicNavbar } from "@/components/uibrik/classic-navbar/classic-navbar";

<ClassicNavbar />

Installation

npx shadcn@latest add https://uibrik.com/r/classic-navbar.json
Adds the files to components/uibrik/classic-navbar and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/classic-navbar.

Props

ClassicNavbar
align
Type "left" | "center" | "right"
"left"
Where the links sit: beside the logo, centred, or beside the CTAs.
ctas
Type "none" | "one" | "two"
"two"
How many call-to-action buttons.
brand
Type string
"Acme"
Text beside the mark.
links
Type string[]
["Product","Features","Pricing","Customers","Docs"]
Link labels, in order.
primaryLabel
Type string
"Get started"
Label of the main button.
secondaryLabel
Type string
"Sign in"
Label of the quieter button.
hideOnScroll
Type boolean
true
Slide out of view while scrolling down; come back on scroll up.
logo
Type ReactNode
–
Your own logo; replaces the default mark.
current
Type string
–
Label of the current page's link.
primaryHref / secondaryHref
Type string
–
Where the CTAs go.
className
Type string
–
Classes for the header.
maxWidth
Type number
1120
Width of the content inside the bar, in px.
onNavigate
Type (label) => void
–
Called when a link is chosen, for client-side routing.