Skip to content
Menu

Buttons

Collapsing share button

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

Using Collapsing share button

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

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
labeltextShareUp to 18 characters
accentcolor#38BDF8No additional limit in the metadata.
itemsnumber3From 2 to 5; step 1
directionselectupOptions: up, down
closeOnBlurbooleantrueNo additional limit in the metadata.
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.

Connect your agent

Related open components