# Captioned Like Button

https://fieldbook.lizardi.mx/components/captioned-like-button

Category: Buttons
![Still of the Captioned Like Button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/captioned-like-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/captioned-like-button-fe999e5716.mp4 (5 s, silent)

Captioned Like Button: An icon-only heart button that reveals a caption rising from beneath on hover or focus, and fills solid with a quick overshoot when liked.

## 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 | #FF4D8D | No additional limit in the metadata. |
| caption | text | Like | Up to 16 characters |
| likedCaption | text | Liked | Up to 16 characters |
| size | number | 30 | From 16 to 56; step 2 |
| showCount | boolean | true | No additional limit in the metadata. |
| startLiked | boolean | false | No additional limit in the metadata. |

## Usage notes

Captioned Like Button uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Captioned Like Button?

Captioned Like 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 Captioned Like Button depend on?

The React metadata lists these npm dependencies beyond React: motion.

### What accessibility details are visible in Captioned Like Button?

The React source for Captioned Like Button includes: attributes and handlers (aria-hidden, aria-label, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Captioned Like Button handle reduced motion?

Captioned Like Button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.18; duration: reduced ? 0.15 : 0.22; liked &amp;&amp; !reduced ? \{ duration: 0.38, times: \[0, 0.4, 1\], ease: "easeOut" \} : \{ duration: reduced ? 0 : 0.18 \}. 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": "captioned-like-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Counting follow chip](https://fieldbook.lizardi.mx/components/counting-follow-chip)
- [Reversing bars menu button](https://fieldbook.lizardi.mx/components/reversing-bars-menu-button)
- [Travelling knob follow button](https://fieldbook.lizardi.mx/components/travelling-knob-follow-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)
