# Collapsing share button

https://fieldbook.lizardi.mx/components/collapsing-share-button

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

Collapsing share button: A labelled pill that shrinks to a round glyph while a strip of link tiles floats into the space it left.

## 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 | Share | Up to 18 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| items | number | 3 | From 2 to 5; step 1 |
| direction | select | up | Options: up, down |
| closeOnBlur | boolean | true | No additional limit in the metadata. |

## Usage notes

Collapsing share button uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Collapsing share button?

Collapsing share 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 Collapsing share button depend on?

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

### What accessibility details are visible in Collapsing share button?

The React source for Collapsing share button includes: native elements (a); attributes and handlers (aria-expanded, aria-hidden, aria-label, onKeyDown); explicit roles (group); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Collapsing share button handle reduced motion?

Collapsing share button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0.12 : 0.24; duration: reduced ? 0.15 : 0.22. 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": "collapsing-share-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Radial Share Fan](https://fieldbook.lizardi.mx/components/radial-share-fan)
- [Reversing bars menu button](https://fieldbook.lizardi.mx/components/reversing-bars-menu-button)
- [Share toggle chip](https://fieldbook.lizardi.mx/components/share-toggle-chip)
- [Twin Sweep Tile](https://fieldbook.lizardi.mx/components/twin-sweep-tile-button)
- [Captioned Like Button](https://fieldbook.lizardi.mx/components/captioned-like-button)
- [Channel tile row](https://fieldbook.lizardi.mx/components/channel-tile-row)
