# Return to top chip

https://fieldbook.lizardi.mx/components/return-to-top-chip

Category: Buttons
![Still of the Return to top chip component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/return-to-top-chip.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/return-to-top-chip-41dfda909c.mp4 (5 s, silent)

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.

## 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 |
| --- | --- | --- | --- |
| threshold | number | 160 | From 40 to 600; step 20 |
| accent | color | #9BE15D | No additional limit in the metadata. |
| corner | select | bottom-right | Options: bottom-right, bottom-left, top-right, top-left |
| chipSize | number | 36 | From 28 to 56; step 2 |
| smooth | boolean | true | No additional limit in the metadata. |

## Usage notes

Return to top chip uses the card preview frame with a dark theme setting.

### 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.

## 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": "return-to-top-chip",
    "framework": "react"
  }
}
```

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

## Related open components

- [Icon reveal chip](https://fieldbook.lizardi.mx/components/icon-reveal-fill-chip)
- [Arrow chip button](https://fieldbook.lizardi.mx/components/arrow-chip-button)
- [Collapsing share button](https://fieldbook.lizardi.mx/components/collapsing-share-button)
- [Corner bracket frame button](https://fieldbook.lizardi.mx/components/corner-bracket-frame-button)
- [Corner bracket seal button](https://fieldbook.lizardi.mx/components/corner-bracket-seal-button)
- [Counting follow chip](https://fieldbook.lizardi.mx/components/counting-follow-chip)
