Skip to content
Menu

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.

ControlTypeDefaultPreview limits
labeltextStart the lapUp to 24 characters
accentcolor#F5C542No additional limit in the metadata.
speednumber300From 120 to 900; step 20
borderWidthnumber6From 2 to 10; step 1
autoDemobooleantrueNo 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.

Connect your agent

Related open components