# Swelling pill add button

https://fieldbook.lizardi.mx/components/swelling-pill-add-button

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

Swelling pill add button: A heavy accent pill with a slowly breathing plus mark that swells about a tenth larger on a long slow ease and sinks into an inner shadow when held.

## 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 | Add to project | Up to 24 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| growth | number | 1.1 | From 1 to 1.25; step 0.01 |
| easeMs | number | 500 | From 150 to 1200; step 25 |
| pulse | boolean | true | No additional limit in the metadata. |

## Usage notes

Swelling pill add button uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Swelling pill add button?

Swelling pill add 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 Swelling pill add button depend on?

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

### What accessibility details are visible in Swelling pill add button?

The React source for Swelling pill add button includes: attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Swelling pill add button handle reduced motion?

Swelling pill add button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: transitionMs: reducedMotion ? 1 : holding ? PRESS\_MS : Math.min(1200, Math.max(150, easeMs)). 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": "swelling-pill-add-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Bevel press pill](https://fieldbook.lizardi.mx/components/bevel-press-pill)
- [Grounded download pill](https://fieldbook.lizardi.mx/components/grounded-download-pill)
- [Amber upload pill](https://fieldbook.lizardi.mx/components/amber-upload-pill)
- [Arrow to label pill](https://fieldbook.lizardi.mx/components/arrow-to-label-pill)
- [Cartridge fire button](https://fieldbook.lizardi.mx/components/cartridge-fire-button)
- [Dark Pill Sign In](https://fieldbook.lizardi.mx/components/dark-pill-sign-in-button)
