Buttons
Letter swap copy button
Letter swap copy button: A raised copy button whose label rebuilds itself letter by letter on hover while its icon chip pulses and draws a check when the copy lands.
Using Letter swap copy button
Letter swap copy 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 | Copy link | Up to 18 characters |
doneLabel | text | Copied | Up to 18 characters |
accent | color | #7C5CFF | No additional limit in the metadata. |
stagger | number | 30 | From 0 to 90; step 5 |
resetMs | number | 2000 | From 600 to 5000; step 100 |
Which frameworks are available for Letter swap copy button?
Letter swap copy 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 Letter swap copy button depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Letter swap copy button?
The React source for Letter swap copy button includes: attributes and handlers (aria-hidden, aria-live). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Letter swap copy button handle reduced motion?
Letter swap copy button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduce ? 0 : 0.18; duration: reduce ? 0 : 0.3; duration: reduce ? 0.2 : ROLL_MS / 1000. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.