Componentnavigation1.03 KB gzipZero dependencies
Responsive Nav
Auto-switching nav: desktop horizontal links, mobile hamburger panel.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add responsive-navOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { ResponsiveNav } from "@/components/ui/responsive-nav"; <ResponsiveNav />Source code
responsive-nav.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxresponsive-nav.tsx83 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ResponsiveNavItem { id: string; label: string; href?: string;} export interface ResponsiveNavProps extends React.HTMLAttributes<HTMLElement> { brand?: string; items: ResponsiveNavItem[]; activeId?: string; breakpoint?: "sm" | "md" | "lg";} Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { ResponsiveNav } from "@/components/ui/responsive-nav"; <ResponsiveNav />| Prop | Type | Description |
|---|---|---|
| brand | string | Configures brand. (Default: "bigbullui") |
| items | ResponsiveNavItem[] | Structured list of items rendered by the component. (Default: []) |
| activeId | string | Configures active id. |
| breakpoint | "sm" | "md" | "lg" | Configures breakpoint. (Default: "md") |