---
title: "Rope Tabs"
description: "A tab list whose mark hangs on a rope: pick a tab and the rope slides under it while the weight swings past and settles. Built on the Tabs component."
url: https://gelatinui.com/components/rope-tabs
markdown_url: https://gelatinui.com/components/rope-tabs.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/rope-tabs"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Rope Tabs

> A tab list whose mark hangs on a rope: pick a tab and the rope slides under it while the weight swings past and settles. Built on the Tabs component.

Page: https://gelatinui.com/components/rope-tabs

## When to use it

Best for: A tab bar on a marketing or product page, where the swing of the mark adds character.

- Use it in place of `TabsList` inside `Tabs`, with `TabsTrigger` and `TabsContent`.
- Keep `variant="line"` (the default): its bottom edge is the rail of the rope.
- Use a horizontal list with a few short tabs.

## When not to use it

- For a dense app or settings screen, use plain [Tabs](https://gelatinui.com/components/tabs.md).
- For a small choice of two or three values, use a [Segmented Control](https://gelatinui.com/components/segmented-control.md).

## Notes for agents

- `RopeTabs` takes every `TabsList` prop. `className` goes on the root box around the list and the rope.
- Base UI owns the value, the arrow keys, the roving focus, right to left, and the panels.
- Horizontal lists only. The rope reads the active tab from the DOM, so tabs can come and go.
- The loop stops when the weight is still and when the list is off screen.

## Anatomy

```text
RopeTabs
```

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| RopeTabs | `rope-tabs` |  |  |  |

## Usage

Use Rope Tabs in place of the tab list, with the Tabs parts.

```tsx title="product-tabs.tsx"
import { RopeTabs } from "@/components/pro/navigation/rope-tabs";
import { Tabs, TabsContent, TabsTrigger } from "@/components/ui/tabs";

export function ProductTabs() {
  return (
    <Tabs defaultValue="overview">
      <RopeTabs aria-label="Product">
        <TabsTrigger value="overview">Overview</TabsTrigger>
        <TabsTrigger value="pricing">Pricing</TabsTrigger>
        <TabsTrigger value="changelog">Changelog</TabsTrigger>
      </RopeTabs>
      <TabsContent value="overview">The plan for this quarter, in one page.</TabsContent>
      <TabsContent value="pricing">Three plans. Every plan has every feature.</TabsContent>
      <TabsContent value="changelog">Version 2.4 adds offline mode.</TabsContent>
    </Tabs>
  );
}
```

## Compose

Rules:

- Touch targets (`touch-targets`): Give every control a hit area of at least 44 px on touch screens, even when it looks smaller.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/rope-tabs
```

It adds 24 registry items: 22 files, 3259 lines, and the npm packages `@base-ui/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Tabs](https://gelatinui.com/components/tabs.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Tabs](https://gelatinui.com/components/tabs.md)
- [Segmented Control](https://gelatinui.com/components/segmented-control.md)

## Motion

| Part | Motion |
| --- | --- |
| Swing | sway · the rope slides under the picked tab, and the weight swings past and settles in about 2 s |
