Buttons
Opposing rule text button
Opposing rule text button: A borderless uppercase text button bracketed by two rules that sweep in from opposite ends on hover or focus and retreat the way they came.
Using Opposing rule text button
Opposing rule text 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 | Hover me | Up to 28 characters |
accent | color | #FF6A1F | No additional limit in the metadata. |
thickness | number | 2 | From 1 to 6; step 1 |
duration | number | 0.5 | From 0.1 to 1.5; step 0.05 |
size | number | 25 | From 14 to 40; step 1 |
Which frameworks are available for Opposing rule text button?
Opposing rule text 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 Opposing rule text button depend on?
The React metadata lists these npm dependencies beyond React: clsx.
What accessibility details are visible in Opposing rule text button?
The React source for Opposing rule text button includes: native elements (button); attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Opposing rule text button handle reduced motion?
The source scan found no direct useReducedMotion() or matchMedia preference read in Opposing rule text button's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.