Navigationsrc/components/ui/tabs.tsx

Tabs

Layered sections of content with tab triggers.

Preview

Account
Make changes to your account here. Click save when you're done.

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Tabs } from "@/components/ui/tabs"

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

API Reference

ExportPurpose
TabsComposable part exported by `@/components/ui/tabs`.