# Panning gradient button

https://fieldbook.lizardi.mx/components/panning-gradient-button

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

Panning gradient button: A domed key whose oversized diagonal gradient pans across the face on hover, sweeping a lighter band from one corner to the other.

## 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 | #38BDF8 | No additional limit in the metadata. |
| deep | color | #1D4ED8 | No additional limit in the metadata. |
| label | text | Back this project | Up to 24 characters |
| duration | number | 800 | From 200 to 2000; step 50 |
| dome | boolean | true | No additional limit in the metadata. |

## Usage notes

Panning gradient button uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Panning gradient button?

Panning gradient 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 Panning gradient button depend on?

The React metadata lists no additional npm dependencies beyond React.

### What accessibility details are visible in Panning gradient button?

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

The source scan found no direct useReducedMotion() or matchMedia preference read in Panning gradient 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.

## 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": "panning-gradient-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Hard edge key button](https://fieldbook.lizardi.mx/components/hard-edge-key-button)
- [Amber upload pill](https://fieldbook.lizardi.mx/components/amber-upload-pill)
- [Destructive sweep button](https://fieldbook.lizardi.mx/components/destructive-sweep-button)
- [Diagonal wedge button](https://fieldbook.lizardi.mx/components/diagonal-wedge-button)
- [Dialog bevel button](https://fieldbook.lizardi.mx/components/dialog-bevel-button)
- [Glow halo button](https://fieldbook.lizardi.mx/components/glow-halo-button)
