Buttons
Diagonal swipe button
Diagonal swipe button: An outlined button holding a thin slanted blade that straightens and widens until it floods the frame on hover.
Using Diagonal swipe button
Diagonal swipe 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 | Get access | Up to 20 characters |
accent | color | #7C5CFF | No additional limit in the metadata. |
tilt | number | 60 | From 30 to 80; step 5 |
borderWidth | number | 4 | From 1 to 8; step 1 |
durationMs | number | 300 | From 120 to 800; step 20 |
Which frameworks are available for Diagonal swipe button?
Diagonal swipe 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 Diagonal swipe button depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Diagonal swipe button?
The React source for Diagonal swipe button includes: native elements (button); attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Diagonal swipe button handle reduced motion?
Diagonal swipe button reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.