# Perimeter draw button

https://fieldbook.lizardi.mx/components/perimeter-draw-button

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

Perimeter draw button: A short thick bar parked under the label stretches and travels around all four sides on hover until it closes into a full outline, then retracts back into the bar on leave.

## 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 |
| --- | --- | --- | --- |
| accent | color | #FF4D8D | No additional limit in the metadata. |
| label | text | Subscribe | Up to 20 characters |
| strokeWidth | number | 5 | From 1 to 10; step 1 |
| duration | number | 1000 | From 300 to 2500; step 50 |
| wash | boolean | true | No additional limit in the metadata. |

## Usage notes

Perimeter draw button uses the inline preview frame with a dark theme setting.

### Which frameworks are available for Perimeter draw button?

Perimeter draw 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 Perimeter draw button depend on?

The React metadata lists no additional npm dependencies beyond React.

### What accessibility details are visible in Perimeter draw button?

The React source for Perimeter draw 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 Perimeter draw button handle reduced motion?

Perimeter draw 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": "perimeter-draw-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Tracing edge button](https://fieldbook.lizardi.mx/components/tracing-edge-button)
- [Corner bracket frame button](https://fieldbook.lizardi.mx/components/corner-bracket-frame-button)
- [Corner bracket seal button](https://fieldbook.lizardi.mx/components/corner-bracket-seal-button)
- [Dashed outline tooltip button](https://fieldbook.lizardi.mx/components/dashed-outline-tooltip-button)
- [Diagonal blob flood button](https://fieldbook.lizardi.mx/components/diagonal-blob-flood-button)
- [Diagonal swipe button](https://fieldbook.lizardi.mx/components/diagonal-swipe-button)
