Buttons
Drive through button
Drive through button: A boxy console button whose caption clears out of the way so a flat vehicle mark can roll in from the left, park, and shoot off the right edge when activated.
Using Drive through button
Drive through button uses the inline preview frame with a 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 | Start the lap | Up to 24 characters |
accent | color | #F5C542 | No additional limit in the metadata. |
speed | number | 300 | From 120 to 900; step 20 |
borderWidth | number | 6 | From 2 to 10; step 1 |
autoDemo | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Drive through button?
Drive through 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 Drive through button depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Drive through button?
The React source for Drive through button includes: attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Drive through button handle reduced motion?
Drive through 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.