Componentnavigation1.03 KB gzipZero dependencies

Responsive Nav

Auto-switching nav: desktop horizontal links, mobile hamburger panel.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add responsive-nav

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { ResponsiveNav } from "@/components/ui/responsive-nav"; <ResponsiveNav />

Source code

responsive-nav.tsx + 1 helper

Zero 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 />
PropTypeDescription
brandstringConfigures brand. (Default: "bigbullui")
itemsResponsiveNavItem[]Structured list of items rendered by the component. (Default: [])
activeIdstringConfigures active id.
breakpoint"sm" | "md" | "lg"Configures breakpoint. (Default: "md")