Side tabs preview

Interactive preview of the CyberSpec Side tabs component. Icon keys stacked down the edge, with a panel beside them.

About this preview

Side tabs belongs to the Navigation group in the CyberSpec catalog. It uses @ui-sdk/react/tabs.

Installation

Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.

bunx --bun shadcn@latest add https://www.cyberspec.dev/r/side-tabs.json

Example

"use client"

import { Car, Cpu, MapPin, Users } from "lucide-react"
import { SideTabs } from "@/components/ui/side-tabs"

export default function SideTabsDemo() {
  return (
    <>
      <SideTabs
        label="Archive sections"
        defaultValue="people"
        tabs={[
          {
            value: "people",
            label: "People",
            icon: <Users aria-hidden />,
            content: (
              <>
                <p>Fourteen dossiers. Six are crew, three are brokers, and one hasn't answered a ping since Cinder Row.</p>
                <p>Mara Voss vouches for most of them. Ask her about the rest before you call.</p>
              </>
            ),
          },
          {
            value: "vehicles",
            label: "Vehicles",
            icon: <Car aria-hidden />,
            content: (
              <>
                <p>Two registered, one borrowed. Dex Marlowe keeps the van charged and parked under the Stacks.</p>
                <p>The bike is still in Glasswater. Nobody has gone back for it.</p>
              </>
            ),
          },
          {
            value: "places",
            label: "Places",
            icon: <MapPin aria-hidden />,
            content: (
              <>
                <p>Nine safe addresses across Lowtide and Meridian Heights, sorted by how recently they were swept.</p>
                <p>Anything older than a week reads as unverified.</p>
              </>
            ),
          },
          {
            value: "tech",
            label: "Tech",
            icon: <Cpu aria-hidden />,
            content: (
              <>
                <p>Decks, optics and augments you've handled, with their firmware and who last opened the case.</p>
                <p>The Vanta Mk.II is two revisions behind.</p>
              </>
            ),
          },
        ]}
      />
    </>
  )
}

Install this example

bunx --bun shadcn@latest add https://www.cyberspec.dev/r/side-tabs-demo.json

Resources

View as Markdown