Vertical Tabs

Vertical tabs with a 180px tab list on the left and the active panel on the right, using tab and tabpanel roles. Stacks on mobile. Built for settings screens.

src/registry/ui/vertical-tabs.tsx/r/vertical-tabs.json

Installation#

bash
npx shadcn@latest add @minidev/vertical-tabs

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/vertical-tabs.json

Usage#

tsx
import { VerticalTabs } from "@/components/ui/vertical-tabs"

export function Example() {
  return <VerticalTabs />
}

API reference#

VerticalTabs props
PropTypeDefault
tabsVerticalTab[]SAMPLE_TABS
valuestring-
onChange(id: string) => void-
classNamestring-
All navigation components

Learn more