Buttons
Lift and Sink Button
Lift and Sink Button: A tinted monospace button that floats up on hover and sinks into its own inset shadow when pressed.
Using Lift and Sink Button
Lift and Sink Button uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Ship build | Up to 24 characters |
accent | color | #536DFE | No additional limit in the metadata. |
travel | number | 2 | From 1 to 6; step 1 |
height | number | 56 | From 40 to 72; step 2 |
Which frameworks are available for Lift and Sink Button?
Lift and Sink Button is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Lift and Sink Button depend on?
The React metadata lists these npm dependencies beyond React: clsx.
What accessibility details are visible in Lift and Sink Button?
The React source for Lift and Sink Button includes: native elements (button); attributes and handlers (onKeyDown, onKeyUp). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Lift and Sink Button handle reduced motion?
The source scan found no direct useReducedMotion() or matchMedia preference read in Lift and Sink Button's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.