# Nested capsule button

https://fieldbook.lizardi.mx/components/nested-capsule-button

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

Nested capsule button: A pill button built from three nested capsules that flatten into the outer ring on hover while the label crossfades to the accent colour.

## 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 | View source | Up to 22 characters |
| accent | color | #2563EB | No additional limit in the metadata. |
| showMark | boolean | true | No additional limit in the metadata. |
| gap | number | 4 | From 2 to 8; step 1 |
| size | select | md | Options: sm, md, lg |

## Usage notes

Nested capsule button uses the inline preview frame with a light theme setting.

### Which frameworks are available for Nested capsule button?

Nested capsule 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 Nested capsule button depend on?

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

### What accessibility details are visible in Nested capsule button?

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

The source scan found no direct useReducedMotion() or matchMedia preference read in Nested capsule 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": "nested-capsule-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Blob cap button](https://fieldbook.lizardi.mx/components/blob-cap-button)
- [Drifting aura button](https://fieldbook.lizardi.mx/components/drifting-aura-button)
- [Elevation ladder fill button](https://fieldbook.lizardi.mx/components/elevation-ladder-fill-button)
- [Amber upload pill](https://fieldbook.lizardi.mx/components/amber-upload-pill)
- [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)
