Componentnavigation0.75 KB gzipZero dependencies
History Nav
Back/forward history strip with breadcrumb entries.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add history-navOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { HistoryNav } from "@/components/ui/history-nav"; <HistoryNav />Source code
history-nav.tsx + 1 helperZero 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
| Prop | Type | Description |
|---|---|---|
| entries | HistoryEntry[] | Configures entries. (Default: []) |
| onBack | () => void | Callback invoked on back. |
| onForward | () => void | Callback invoked on forward. |