Buttons
Offset outline stack
Offset outline stack: A bordered button face resting on stepped outline layers like a small pad of paper; hover slides the top sheet onto the stack and inverts its fill.
Using Offset outline stack
Offset outline stack 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 |
|---|---|---|---|
accent | color | #FF4D8D | No additional limit in the metadata. |
label | text | SUBMIT | Up to 18 characters |
offset | number | 8 | From 2 to 16; step 1 |
layers | number | 2 | From 1 to 4; step 1 |
duration | number | 300 | From 100 to 900; step 25 |
Which frameworks are available for Offset outline stack?
Offset outline stack 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 Offset outline stack depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Offset outline stack?
The React source for Offset outline stack includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Offset outline stack handle reduced motion?
Offset outline stack reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: invertSeconds: prefersReducedMotion ? 0.15 : duration / 1000; slideSeconds: prefersReducedMotion ? 0 : duration / 1000. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.