Componentnavigation0.62 KB gzipZero dependencies

Navbar

Navigation bar with brand monogram and active links.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add navbar

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Navbar } from "@/components/ui/navbar"; <Navbar brand="BIGBULL" items={[{ label: "EVENTS", href: "#", active: true }]} />

Source code

navbar.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxnavbar.tsx79 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface NavItem {  label: string;  href: string;  active?: boolean;} export interface NavbarProps extends React.HTMLAttributes<HTMLElement> {  brand?: string;  items?: NavItem[];  action?: React.ReactNode;  className?: string;} 

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Navbar } from "@/components/ui/navbar"; <Navbar />
PropTypeDescription
brandstringConfigures brand. (Default: "BIGBULL")
itemsNavItem[]Structured list of items rendered by the component.
actionReact.ReactNodeConfigures action.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.