Tabs

PreviousNext

tabs-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/navigation/tabs/tabs-demo.tsx
"use client"

import { Tab, TabList, TabPanel, Tabs } from "@/components/ui/tabs"

export default function TabsDemo() {
  return (
    <Tabs aria-label="Recipe App">
      <TabList>
        <Tab id="r">Recipes</Tab>
        <Tab id="i">Ingredients</Tab>
        <Tab id="v">Videos</Tab>
      </TabList>
      <TabPanel id="r">
        Browse through a wide selection of recipes for all occasions and dietary preferences.
      </TabPanel>
      <TabPanel id="i">Check the list of ingredients needed for your chosen recipes.</TabPanel>
      <TabPanel id="v">Watch cooking videos to learn new techniques and recipes.</TabPanel>
    </Tabs>
  )
}

Installation

npx shadcn@latest add @intentui/tabs-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.