Buttons
Sliding send button
Sliding send button: A flat send button that slides right on hover while the gap between its label and arrow opens, recoils a few pixels under press, and settles back on leave.
Using Sliding send button
Sliding send 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 | Up to 20 characters |
accent | color | #38BDF8 | No additional limit in the metadata. |
travel | number | 12 | From 0 to 24; step 1 |
tracking | number | 1 | From 0 to 3; step 0.1 |
Which frameworks are available for Sliding send button?
Sliding send 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 Sliding send button depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Sliding send button?
The React source for Sliding send button includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Sliding send button handle reduced motion?
Sliding send button reads the motion preference in its React source through useReducedMotion(). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.