nikolas-sapa

Slack Cable Tabs

Navigation

About

A tabs component whose active-tab indicator is a single SVG cable that sags mid-transition and snaps taut, with a small tug preview when hovering a neighboring tab.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Slack Cable Tabs to your project and fits it to your theme.

Code

How Slack Cable Tabs is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SlackRail } from "@/components/ui/tabs-slack-cable";

export default function TabsSlackCableDemo() {
  return (
    <div className="flex w-full h-screen items-center justify-center bg-background text-foreground">
      <div className="w-full max-w-md">
        <SlackRail
          aria-label="Example tabs"
          defaultValue="overview"
          items={[
            {
              value: "overview",
              label: "Overview",
              content: (
                <p className="text-sm text-ns-muted">
                  A quick summary of the project, its goals, and current status.
                </p>
              ),
            },
            {
              value: "activity",
              label: "Activity",
              content: (
                <p className="text-sm text-ns-muted">
                  Recent events, comments, and changes from the team.
                </p>
              ),
            },
            {
              value: "settings",
              label: "Settings",
              content: (
                <p className="text-sm text-ns-muted">
                  Manage preferences, notifications, and access controls.
                </p>
              ),
            },
          ]}
        />
      </div>
    </div>
  );
}

More by nikolas-sapa

View all
  • Countdown Vapor Digits

    Countdown Vapor Digits

    190
  • Dye Whorl

    Dye Whorl

    167
  • Background ASCII Wake

    Background ASCII Wake

    92
  • Hero Burin Hatch

    Hero Burin Hatch

    79
  • Hero ASCII Schlieren

    Hero ASCII Schlieren

    64
  • Hero ASCII Reaction Front

    Hero ASCII Reaction Front

    61
  • Hero Text Ring Funnel

    Hero Text Ring Funnel

    60
  • Toast Gravity Stack

    Toast Gravity Stack

    58

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82