Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
Overview
Three deploys today, all green.
A row of tabs whose pill stretches across to the one you pick.
npx shadcn@latest add ikislay/pixel-ui/tabsimport { Tabs } from "@/components/ui/tabs"export function Demo() {return (<Tabsaria-label="Account"items={[{ value: "profile", label: "Profile", content: <p>Your public details.</p> },{ value: "billing", label: "Billing", content: <p>Plans and invoices.</p> },]}/>)}
1// Loading…
Options you can pass to customize this component.
items*{ value: string; label: ReactNode; content: ReactNode }[]The tabs and the panel each one shows.
valuestringControls the open tab. Leave it unset to let the tabs manage themselves.
defaultValuestringThe starting tab when uncontrolled. Defaults to the first one.
onValueChange(value: string) => voidCalled with the newly opened tab.
onFeedback(event: "select") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the root element.