Component packs › Gnomon › Shadow Tabs

Shadow Tabs

A lacquered block marks the tab: it lifts off with a growing, softening shadow, carries across and sets down sharp on the new tab.

Shadow Tabs is a tabs from Gnomon, a component pack with 6 shadow controls: One light for the whole page: switch on the lamp and every control swings its shadow away from it. Price: $2 for the whole pack.

Built with: lift, carry, set down, shared light, stone tray.

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.

Shadow Tabs props

PropTypeDefaultDescription
tabsstring[]["Overview", "Activity", "Files", "Settings"]Tab labels. Default ["Overview", "Activity", "Files", "Settings"].
valuenumber
labelstring
disabledboolean
darkboolean
onChange(index: number, label: string) => void
autoplaynumber | falseShowcase mode: moves to another tab every N ms while visible.

Methods on the ref

Use it in React

import ShadowTabs from './ShadowTabs';

<ShadowTabs />

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

More in Gnomon

Good for: Skeuomorphic UI.