Component packs › Gnomon › Lift Buttons

Lift Buttons

Ceramic keys stand off the surface: hover lifts one and its shadow stretches and softens; pressing sinks it until the shadow tucks under.

Lift Buttons is a segmented control 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: height-driven shadow, shared light, press depth.

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.

Lift Buttons props

PropTypeDefaultDescription
optionsstring[]["Day", "Week", "Month", "Year"]Labels. Default ["Day", "Week", "Month", "Year"].
valuenumber1Selected index. Default 1.
labelstring
disabledboolean
darkboolean
onChange(index: number, label: string) => void
autoplaynumber | falseShowcase mode: presses the next key every N ms while visible.

Methods on the ref

Use it in React

import LiftButtons from './LiftButtons';

<LiftButtons />

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

More in Gnomon

Good for: Skeuomorphic UI.