Component packs › Gnomon › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
options | string[] | ["Day", "Week", "Month", "Year"] | Labels. Default ["Day", "Week", "Month", "Year"]. |
value | number | 1 | Selected index. Default 1. |
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (index: number, label: string) => void | ||
autoplay | number | false | Showcase mode: presses the next key every N ms while visible. |
readonly value: numbersetValue(i: number, silent?: boolean): voiddestroy(): voidimport LiftButtons from './LiftButtons';
<LiftButtons />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.