Skip to content
Menu

Buttons

Expanding icon pill

Expanding icon pill: A round icon button that stretches into a labelled pill on hover, trading its glyph for a word as an accent fill arrives.

Using Expanding icon pill

Expanding icon pill uses the inline preview frame with a light 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
labeltextHomeUp to 14 characters
accentcolor#7C5CFFNo additional limit in the metadata.
collapsednumber60From 40 to 88; step 2
expandednumber180From 120 to 260; step 4
castbooleantrueNo additional limit in the metadata.
Which frameworks are available for Expanding icon pill?

Expanding icon 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 Expanding icon pill depend on?

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

What accessibility details are visible in Expanding icon pill?

The React source for Expanding icon pill includes: native elements (button); attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Expanding icon pill handle reduced motion?

Expanding icon pill reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: gap: reduced ? 0 : 250; stretch: reduced ? 280 : 520; swap: reduced ? 1 : 190. 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