Skip to content
Menu

Buttons

Return to top chip

Return to top chip: A small corner chip that slides into view once its panel scrolls past a threshold, lifts under the pointer, and glides the panel back to the top on click.

Using Return to top chip

Return to top chip uses the card preview frame with a 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
thresholdnumber160From 40 to 600; step 20
accentcolor#9BE15DNo additional limit in the metadata.
cornerselectbottom-rightOptions: bottom-right, bottom-left, top-right, top-left
chipSizenumber36From 28 to 56; step 2
smoothbooleantrueNo additional limit in the metadata.
Which frameworks are available for Return to top chip?

Return to top chip 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 Return to top chip depend on?

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

What accessibility details are visible in Return to top chip?

The React source for Return to top chip includes: attributes and handlers (aria-hidden, aria-label, tabIndex). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Return to top chip handle reduced motion?

Return to top chip 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.

Connect your agent

Related open components