Primitives

Tabs

Underline, pill, solid, enclosed — one API, the indicator slides.

underline

312 sessions today.

pill

312 sessions today.

solid

312 sessions today.

enclosed

312 sessions today.

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<TabsContent>

src/components/ui/tabs.tsx

Also takes ComponentPropsWithoutRef<typeof TabsPrimitive.Content> (passed through).

<TabsList>

src/components/ui/tabs.tsx
PropTypeDefaultDescription
variant"underline" | "pill" | "solid" | "enclosed""underline"

Also takes ComponentPropsWithoutRef<typeof TabsPrimitive.List>.

<TabsTrigger>

src/components/ui/tabs.tsx
PropTypeDefaultDescription
countnumber—

Also takes ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>.

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui