Componentnavigation0.75 KB gzipZero dependencies

History Nav

Back/forward history strip with breadcrumb entries.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add history-nav

Or install the full npm package:

npm install bigbullui

Usage

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

Source code

history-nav.tsx + 1 helper

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

tsxhistory-nav.tsx56 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface HistoryEntry {  id: string;  label: string;} export interface HistoryNavProps extends React.HTMLAttributes<HTMLElement> {  entries: HistoryEntry[];  onBack?: () => void;  onForward?: () => void;} /** History navigation toolbar: breadcrumb trail + forward/back arrows. */export function HistoryNav({ entries = [], onBack, onForward, className, ...props }: HistoryNavProps) {

Props

PropTypeDescription
entriesHistoryEntry[]Configures entries. (Default: [])
onBack() => voidCallback invoked on back.
onForward() => voidCallback invoked on forward.