chrisdalbano

Fz Tabs

Navigation

About

A keyboard-navigable tab list with a sliding underline indicator and a directional slide transition between panels, where the parent owns the panel content.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fz Tabs to your project and fits it to your theme.

Code

How Fz Tabs is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import * as React from "react";
import FzTabs from "@/components/ui/fz-tabs";

/**
 * Reproduces the live preview on forzaui.chrisdalbano.com/components/tabs
 * (Overview / Statistics / History, dark .fz-theme surface).
 */
export default function FzTabsDemo() {
  const [tab, setTab] = React.useState("overview");
  const tabs = [
    { value: "overview", label: "Overview" },
    { value: "statistics", label: "Statistics" },
    { value: "history", label: "History" },
  ];
  const content: Record<string, string> = {
    overview: "A complete view of your build.",
    statistics: "Lap times, top speed, and tire wear across your last session.",
    history: "Every tune you've saved, in the order you made them.",
  };
  return (
    <div className="fz-theme flex min-h-[320px] w-full items-center justify-center p-10">
      <div style={{ maxWidth: 520, width: "100%" }}>
        <FzTabs label="Details" options={tabs} value={tab} onChange={setTab}>
          {(value) => <p>{content[value]}</p>}
        </FzTabs>
      </div>
    </div>
  );
}

More by chrisdalbano

View all
  • Forza Button

    Forza Button

    6
  • Fz Accordion

    Fz Accordion

    5
  • Forza Table

    Forza Table

    2
  • Forza Textarea

    Forza Textarea

  • Avatar Group

    Avatar Group

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6