Buttons
Press down sweep button
Press down sweep button: A solid button whose fill washes brighter from one side on hover and drops flat against the page while it is held.
Using Press down sweep button
Press down sweep 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 | Send invite | Up to 24 characters |
accent | color | #1E90FF | No additional limit in the metadata. |
pressDepth | number | 3 | From 0 to 8; step 1 |
sweep | boolean | true | No additional limit in the metadata. |
radius | number | 4 | From 0 to 20; step 1 |
Which frameworks are available for Press down sweep button?
Press down sweep 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 Press down sweep button depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Press down sweep button?
The React source for Press down sweep button includes: 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 Press down sweep button handle reduced motion?
Press down sweep button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: y: reduced || !pressed ? 0 : pressDepth. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.