Components
Tabs
SketchTabs — hand-drawn tabbed panels.
SketchTabs renders a row of sketched tabs with the active panel below. It manages
its own selection when uncontrolled, or you can drive it with activeIndex +
onChange.
Default
import { SketchTabs } from "blackchalk";<SketchTabstabs={[ { label: "Overview", content: "The big picture." }, { label: "Specs", content: "The fine print." }, { label: "Reviews", content: "What people say." },]}/>Props
| Prop | Type | Default |
|---|---|---|
tabs | { label: string, content: ReactNode }[] | — |
activeIndex | number | — |
onChange | (index: number) => void | — |
See it in the Storybook playground, or read the source.