Component packs › Keycap › Key Row Tabs

Key Row Tabs

The active key stays half down with its LED lit; press another and it latches while the old key springs back up.

Key Row Tabs is a tabs from Keycap, a component pack with 6 keyboard controls: Controls made of mechanical keyboard keys: real travel, a tactile bump and a switch LED under every cap. Price: $2 for the whole pack.

Built with: radio latch, roving focus, LED per key.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Key Row Tabs props

PropTypeDefaultDescription
tabsstring[]Overview, Activity, Billing, TeamTab names. Default Overview, Activity, Billing, Team.
panelsstring[]Panel text for each tab (optional).
valuenumber0Selected index. Default 0.
labelstring"Sections"Accessible name of the tab list. Default "Sections".
onChange(index: number) => void

Methods on the ref

Use it in React

import KeyRowTabs from './KeyRowTabs';

<KeyRowTabs />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Keycap

Good for: Buttons.