# Diagonal wedge button

https://fieldbook.lizardi.mx/components/diagonal-wedge-button

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

Diagonal wedge button: A squared button filled by a triangular wedge that grows along the diagonal until it covers the whole face.

## 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 | Export | Up to 32 characters |
| accent | color | #F5C542 | No additional limit in the metadata. |
| duration | number | 0.2 | From 0.1 to 0.8; step 0.05 |
| rim | number | 1 | From 1 to 4; step 1 |
| padX | number | 32 | From 16 to 64; step 4 |

## Usage notes

Diagonal wedge button uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Diagonal wedge button?

Diagonal wedge 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 Diagonal wedge button depend on?

The React metadata lists these npm dependencies beyond React: clsx, tailwind-merge.

### What accessibility details are visible in Diagonal wedge button?

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

Diagonal wedge 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": "diagonal-wedge-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Converging chevron button](https://fieldbook.lizardi.mx/components/converging-chevron-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)
- [Relay fill button](https://fieldbook.lizardi.mx/components/relay-fill-button)
- [Winged crest button](https://fieldbook.lizardi.mx/components/winged-crest-button)
- [Banded stripe button](https://fieldbook.lizardi.mx/components/banded-stripe-button)
