Plucked String Tabs

Tabs hang from a taut string. Choosing one plucks the string there and the vibration travels as a real damped wave; every tab bobs with the string above it and a glowing bead slides to the active tab. Sweep across the string to strum it.

Try it: Click or ←/→ between tabs; sweep the pointer across the string to strum.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/plucked-string-tabs.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/plucked-string-tabs. You can also copy the source into components/ui/plucked-string-tabs.tsx (view on GitHub).

Usage

import { PluckedStringTabs } from '@/components/ui/plucked-string-tabs'

Props

Component props
PropTypeDefaultNotes
items{ id, label, content? }[]DEFAULT_STRING_TABSTabs and their panels.
value / defaultValue / onValueChangestring—Controlled or uncontrolled active tab.
strumbooleantruePointer crossings pluck the string.

Dependencies

  • motion
  • Compass Rail

    Vertical rail with a shortest-path compass marker.

  • File Tree Explorer

    An editor-grade file tree: folders open on a soft height spring, hairline guides show depth, and one highlight glides between selected rows. Full WAI-ARIA tree keyboard support with type-ahead; the…

  • Halo Menu

    Center action opens a 6-item halo.

  • Island Section Nav

    A floating pill that tells you where you are — current section with a scroll-progress ring — then swells into a full jump bar on hover, focus or tap with a sliding highlight, and settles back when…

  • Magnify Dock

    Dock with proximity scaling.

  • Command Menu

    A Ctrl/⌘ K palette for hopping around a portfolio: fuzzy search that underlines the letters it matched, grouped results, a highlight pill that springs between rows, key-cap hints and full combobox…

See all 12 Navigation components