TidalUI

Tabs preview

Switch between connected panels with an animated underline.

pro · Navigation · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/tabs

Import components/ui/tidal.css, components/ui/tabs.css. Wrap installed components in tidal-scope.

Preview

Tabs component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/tabs.css";
import{TidalTabs}from"./components/ui/tabs";
export default()=><div className="tidal-scope"><TidalTabs items={[{value:"value",label:"Demo",content:"value"}]} label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;

API and props

TidalTabs.items (required)
Array<TidalTab>

Required items value accepted by this exported component.

TidalTabs.label (required)
string

Required label value accepted by this exported component.

TidalTabs.onValueChange (required)
(value: string) => void

Callback invoked when the value change interaction is proposed.

TidalTabs.value (required)
string

Required value value accepted by this exported component.

TidalTabs.activationMode
"manual" | "automatic" | undefined

Optional activation mode value accepted by this exported component.

TidalTabs.animateHeight
boolean | undefined

Smooth natural-height panel changes. Disable for externally constrained or overflowing content.

TidalTabs.className
string | undefined

Optional class name value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas