43 Pro components and page blocks

Get Pro

Tray Navbar

Preview

Customize

Centre
One

Usage

import { TrayNavbar } from "@/components/uibrik/tray-navbar/tray-navbar";

<TrayNavbar />

Installation

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

Props

TrayNavbar
align
Type "left" | "center" | "right"
"center"
Where the links sit: beside the logo, centred, or beside the CTAs.
ctas
Type "none" | "one" | "two"
"one"
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.
surface
Type boolean
false
Draw the bar on a surface with a hairline edge.
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.