Componentnavigation0.62 KB gzipZero dependencies
Navbar
Navigation bar with brand monogram and active links.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add navbarOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Navbar } from "@/components/ui/navbar"; <Navbar brand="BIGBULL" items={[{ label: "EVENTS", href: "#", active: true }]} />Source code
navbar.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| brand | string | Configures brand. (Default: "BIGBULL") |
| items | NavItem[] | Structured list of items rendered by the component. |
| action | React.ReactNode | Configures action. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |