# Feature tabs

Explain connected product capabilities through one controlled, non-rotating tabbed scene.

Access: pro. Category: Marketing. Kind: composite.

## When to use

- Use it when a page needs explain connected product capabilities through one controlled, non-rotating tabbed scene.
- Choose it as the features region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose feature-card instead when a feature summary with animated orbital artwork is the actual interface need, rather than feature tabs.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Feature tabs

```sh
npx shadcn@latest add @tidal-pro/feature-tabs
```

Stylesheets: `components/ui/tidal.css`, `components/ui/feature-tabs.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/feature-tabs.css";
import{TidalFeatureTabs}from"./components/ui/feature-tabs";
export default()=><div className="tidal-scope"><TidalFeatureTabs items={[{id:"example",label:"Demo",title:"Demo",description:"Demo",visual:"value",visualLabel:"Demo"}]} onValueChange={() => {}} title={"Demo"} value={"value"}/></div>;
```

## Structured props

- `TidalFeatureTabs.items: ReadonlyArray<TidalFeatureTab>`: Required items value accepted by this exported component.
- `TidalFeatureTabs.onValueChange: (value: string) => void`: Callback invoked when the value change interaction is proposed.
- `TidalFeatureTabs.title: ReactNode`: Required title value accepted by this exported component.
- `TidalFeatureTabs.value: string`: Required value value accepted by this exported component.
- `TidalFeatureTabs.activationMode?: "manual" | "automatic" | undefined` (default "automatic"): Optional activation mode value accepted by this exported component.
- `TidalFeatureTabs.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFeatureTabs.headingLevel?: "h2" | "h3" | "h4" | "h5" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFeatureTabs.label?: string | undefined`: Optional label value accepted by this exported component.
- `TidalFeatureTabs.labels?: Partial<{ tabs: string; unavailable: string; invalid: string; }> | undefined`: Optional labels value accepted by this exported component.
- `TidalFeatureTabs.preservePanels?: boolean | undefined` (default false): Keep inactive panels mounted so consumer-owned local state survives tab changes.

## Complete usage example

[Source](https://tidalui.com/examples/feature-tabs.tsx) | [Manifest](https://tidalui.com/examples/feature-tabs.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useState } from "react";

import { TidalFeatureTabs, type TidalFeatureTab } from "./components/ui/feature-tabs";

import "./components/ui/feature-tabs.css";



const tidalExampleStyles = ".tidal-scope.feature-tabs-demo {\n  width: min(100%, 1080px);\n  min-width: 0;\n  display: grid;\n  gap: 12px;\n}\n\n.tidal-scope .feature-tabs-scene {\n  min-width: 0;\n  color: var(--t-ink);\n}\n\n.tidal-scope .feature-tabs-route-scene {\n  display: grid;\n  gap: 8px;\n}\n\n.tidal-scope .feature-tabs-route-scene > div {\n  min-width: 0;\n  min-height: 52px;\n  display: grid;\n  grid-template-columns: 30px minmax(0, 1fr) auto;\n  align-items: center;\n  gap: 10px;\n  padding: 8px 10px;\n  border: 1px solid var(--t-border);\n  border-radius: 9px;\n  background: var(--t-subtle);\n}\n\n.tidal-scope .feature-tabs-route-scene > div[data-complete=\"true\"] {\n  background: var(--t-surface);\n}\n\n.tidal-scope .feature-tabs-route-scene span,\n.tidal-scope .feature-tabs-plan-scene > li > span {\n  color: var(--t-muted);\n  font:\n    11px/1.2 ui-monospace,\n    monospace;\n}\n\n.tidal-scope .feature-tabs-route-scene strong,\n.tidal-scope .feature-tabs-plan-scene strong {\n  min-width: 0;\n  font-size: 12px;\n  line-height: 1.4;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .feature-tabs-route-scene small,\n.tidal-scope .feature-tabs-plan-scene small {\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.35;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .feature-tabs-route-scene label {\n  min-width: 0;\n  display: grid;\n  gap: 6px;\n  margin-top: 4px;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.4;\n}\n\n.tidal-scope .feature-tabs-route-scene input {\n  width: 100%;\n  min-width: 0;\n  min-height: 44px;\n  padding: 9px 11px;\n  border: 1px solid var(--t-border);\n  border-radius: 9px;\n  color: var(--t-ink);\n  background: var(--t-surface);\n  font: inherit;\n  font-size: 16px;\n}\n\n.tidal-scope .feature-tabs-route-scene input:focus-visible {\n  outline: 2px solid var(--t-accent);\n  outline-offset: 2px;\n}\n\n.tidal-scope .feature-tabs-plan-scene {\n  list-style: none;\n  display: grid;\n  gap: 0;\n  margin: 0;\n  padding: 0;\n}\n\n.tidal-scope .feature-tabs-plan-scene > li {\n  position: relative;\n  min-width: 0;\n  min-height: 64px;\n  display: grid;\n  grid-template-columns: 34px minmax(0, 1fr);\n  align-items: center;\n  gap: 12px;\n  padding: 8px 0;\n  border-bottom: 1px solid var(--t-border);\n}\n\n.tidal-scope .feature-tabs-plan-scene > li::before {\n  content: \"\";\n  width: 8px;\n  height: 8px;\n  position: absolute;\n  inset-inline-start: 14px;\n  top: 6px;\n  border: 1px solid var(--t-ink);\n  border-radius: 50%;\n  background: var(--t-surface);\n}\n\n.tidal-scope .feature-tabs-plan-scene > li[data-state=\"complete\"]::before,\n.tidal-scope .feature-tabs-plan-scene > li[data-state=\"current\"]::before {\n  background: var(--t-ink);\n}\n\n.tidal-scope .feature-tabs-plan-scene > li > div {\n  min-width: 0;\n  display: grid;\n  gap: 3px;\n}\n\n.tidal-scope .feature-tabs-review-scene {\n  display: grid;\n  gap: 14px;\n}\n\n.tidal-scope .feature-tabs-review-header {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  gap: 12px;\n  font-size: 11px;\n  line-height: 1.4;\n}\n\n.tidal-scope .feature-tabs-review-header span {\n  color: var(--t-muted);\n}\n\n.tidal-scope .feature-tabs-review-paper {\n  display: grid;\n  gap: 10px;\n  min-height: 144px;\n  padding: 20px;\n  border: 1px solid var(--t-border);\n  border-radius: 10px;\n  background: var(--t-subtle);\n}\n\n.tidal-scope .feature-tabs-review-paper span {\n  height: 10px;\n  border-radius: 2px;\n  background: var(--t-border);\n}\n\n.tidal-scope .feature-tabs-review-paper span:nth-child(2) {\n  width: 78%;\n}\n\n.tidal-scope .feature-tabs-review-paper span:nth-child(3) {\n  width: 91%;\n}\n\n.tidal-scope .feature-tabs-review-paper span:nth-child(4) {\n  width: 58%;\n}\n\n.tidal-scope .feature-tabs-review-scene > p {\n  margin: 0;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.55;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .feature-tabs-demo-note {\n  margin: 0;\n  padding-inline: 4px;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.5;\n  overflow-wrap: anywhere;\n}\n\n@container tidal-feature-tabs (max-width: 420px) {\n  .tidal-scope .feature-tabs-route-scene > div {\n    grid-template-columns: 28px minmax(0, 1fr);\n  }\n\n  .tidal-scope .feature-tabs-route-scene > div > small {\n    grid-column: 2;\n  }\n\n  .tidal-scope .feature-tabs-review-header {\n    align-items: flex-start;\n    flex-direction: column;\n  }\n}";

export function FeatureTabsDemo() {
  const [value, setValue] = useState("route");
  const [routed, setRouted] = useState(2);
  const [planned, setPlanned] = useState(false);
  const [approved, setApproved] = useState(false);
  const [note, setNote] = useState("");

  const items: readonly TidalFeatureTab[] = [
    {
      id: "route",
      label: "Route requests",
      eyebrow: "Intake",
      title: "Put the next request in the right hands.",
      description:
        "Assign an owner and keep the latest context beside the work instead of forwarding another thread.",
      detail: `${routed} of 3 sample requests are routed.`,
      visualLabel: "Sample request routing queue",
      visual: (
        <div className="feature-tabs-scene feature-tabs-route-scene">
          {["Homepage copy", "Launch checklist", "Invoice question"].map(
            (request, index) => (
              <div key={request} data-complete={index < routed || undefined}>
                <span>{String(index + 1).padStart(2, "0")}</span>
                <strong>{request}</strong>
                <small>{index < routed ? "Routed" : "Needs owner"}</small>
              </div>
            ),
          )}
          <label>
            Owner note
            <input
              value={note}
              onChange={(event) => setNote(event.currentTarget.value)}
              placeholder="Add sample context"
            />
          </label>
        </div>
      ),
      action: {
        kind: "button",
        label: routed === 3 ? "Reset sample routing" : "Route next request",
        onAction: () =>
          setRouted((current) => (current === 3 ? 2 : current + 1)),
      },
    },
    {
      id: "plan",
      label: "Plan the handoff",
      eyebrow: "Ownership",
      title: "Make every handoff visible before work stalls.",
      description:
        "Keep the current owner, review point and next step together in one compact sequence.",
      detail: planned
        ? "The sample review is planned for Thursday."
        : "The sample review still needs a date.",
      visualLabel: "Sample handoff sequence",
      visual: (
        <ol className="feature-tabs-scene feature-tabs-plan-scene">
          <li data-state="complete">
            <span>01</span>
            <div>
              <strong>Brief ready</strong>
              <small>Ava · complete</small>
            </div>
          </li>
          <li data-state="current">
            <span>02</span>
            <div>
              <strong>Build in progress</strong>
              <small>Noah · current</small>
            </div>
          </li>
          <li data-state={planned ? "complete" : "waiting"}>
            <span>03</span>
            <div>
              <strong>Review</strong>
              <small>{planned ? "Thursday · planned" : "Date needed"}</small>
            </div>
          </li>
        </ol>
      ),
      action: {
        kind: "button",
        label: planned ? "Clear sample plan" : "Plan sample review",
        onAction: () => setPlanned((current) => !current),
      },
    },
    {
      id: "review",
      label: "Close the loop",
      eyebrow: "Review",
      title: "Keep the decision next to the final work.",
      description:
        "Record the review outcome where the team can see what changed and what is ready to ship.",
      detail: approved
        ? "The sample revision is approved."
        : "One sample decision is waiting.",
      visualLabel: "Sample review decision",
      visual: (
        <div className="feature-tabs-scene feature-tabs-review-scene">
          <div className="feature-tabs-review-header">
            <span>Revision 03</span>
            <strong>{approved ? "Approved" : "Ready for review"}</strong>
          </div>
          <div className="feature-tabs-review-paper" aria-hidden="true">
            <span />
            <span />
            <span />
            <span />
          </div>
          <p>
            {approved
              ? "Approved locally. No external workflow was changed."
              : "The final headline and mobile crop are ready to inspect."}
          </p>
        </div>
      ),
      action: {
        kind: "button",
        label: approved ? "Reopen sample" : "Approve sample",
        onAction: () => setApproved((current) => !current),
      },
    },
  ];

  return (
    <div className="feature-tabs-demo">
      <TidalFeatureTabs
        title="Follow the work from request to review."
        description="Choose a stage to inspect the connected sample workflow. Nothing advances automatically."
        items={items}
        value={value}
        onValueChange={setValue}
        preservePanels
      />
      <p className="feature-tabs-demo-note">
        Sample data. Changes stay in this preview.
      </p>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <FeatureTabsDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

Consumer-owned items require unique nonblank IDs, labels, visual labels, titles, descriptions and visual content. Controlled value/onValueChange selects one enabled item; automatic or manual keyboard activation is delegated to Radix Tabs, with no timer or automatic rotation. Optional preservePanels keeps every supplied panel mounted while inactive panels remain hidden, allowing consumer-owned local state to survive selection changes. Each item supports optional eyebrow, detail, disabled state and an explicit native link or button action with separate attributes and direct ref; opposite action channels are excluded and legacy mixed actions fail visibly. Native button handlers run before callback proposals and may prevent them. Disabled buttons use native disabled; disabled links omit href, suppress primary/auxiliary activation and leave the Tab order. The section supports root props/ref, h2-h5 hierarchy, localized tab/unavailable/invalid labels, numeric content, 44px controls, a narrow horizontal tab rail, RTL, forced colors and reduced motion. No routing, request, storage, account operation or product result is bundled. The demo uses local fictional workflow data and one concise sample boundary.
