# Drive through button

https://fieldbook.lizardi.mx/components/drive-through-button

Category: Buttons
![Still of the Drive through button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/drive-through-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/drive-through-button-14d672de5e.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| 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. |

## Usage notes

Drive through button uses the inline preview frame with a dark theme setting.

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "drive-through-button",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Notched console button](https://fieldbook.lizardi.mx/components/notched-console-button)
- [Amber upload pill](https://fieldbook.lizardi.mx/components/amber-upload-pill)
- [Arrow chip button](https://fieldbook.lizardi.mx/components/arrow-chip-button)
- [Arrow to label pill](https://fieldbook.lizardi.mx/components/arrow-to-label-pill)
- [Arrow wipe call to action](https://fieldbook.lizardi.mx/components/arrow-wipe-cta)
- [Banded stripe button](https://fieldbook.lizardi.mx/components/banded-stripe-button)
