# Invert on hover pill

https://fieldbook.lizardi.mx/components/invert-on-hover-pill

Category: Buttons
![Still of the Invert on hover pill component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/invert-on-hover-pill.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/invert-on-hover-pill-2f321cb5d9.mp4 (5 s, silent)

Invert on hover pill: A filled pill that trades fill and label colors and swells slightly on hover or keyboard focus, squeezing below its resting size while pressed.

## 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 | Do not click | Up to 18 characters |
| accent | color | #F5C542 | No additional limit in the metadata. |
| hoverScale | number | 1.1 | From 1 to 1.35; step 0.01 |
| radius | number | 30 | From 4 to 40; step 1 |
| glow | boolean | true | No additional limit in the metadata. |

## Usage notes

Invert on hover pill uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Invert on hover pill?

Invert on hover pill 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 Invert on hover pill depend on?

The React metadata lists no additional npm dependencies beyond React.

### What accessibility details are visible in Invert on hover pill?

The React source for Invert on hover pill includes: native elements (button). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Invert on hover pill handle reduced motion?

Invert on hover pill 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": "invert-on-hover-pill",
    "framework": "react"
  }
}
```

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

## Related open components

- [Swelling pill button](https://fieldbook.lizardi.mx/components/swelling-gradient-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)
- [Color swap play button](https://fieldbook.lizardi.mx/components/color-swap-play-button)
- [Draining fill button](https://fieldbook.lizardi.mx/components/draining-fill-button-2)
- [Expanding icon pill](https://fieldbook.lizardi.mx/components/expanding-icon-pill-2)
