Primitives

Tabs

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

4 examples 2 animated · 1 Pro Code and Figma for each

underline

312 sessions today.

pill

312 sessions today.

solid

312 sessions today.

enclosed

312 sessions today.

Examples#

Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.

Underline

The default for pages: a line slides under the chosen tab.

312 cars parked today, 41 still inside.

Pill

A soft pill for tabs inside a card or a toolbar.

312 cars parked today, 41 still inside.

Solid

A raised thumb on a track, like a segmented control.

312 cars parked today, 41 still inside.

Enclosed

Folder tabs joined to their panel: for settings and editors.

312 cars parked today, 41 still inside.

Animated#

Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.

Panels that rise inFree

Each panel rises gently into place as its tab is chosen.

Occupancy and takings for Gulshan today.

Hover glide Pro

A highlight glides to whichever tab the pointer is over; a gradient line marks the active one.

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