# Lit find — Detent

> Find in a page, by light. Everything dims except what you searched for and the sentence it sits in, and one plate carries you through every match.

Canonical: https://detentui.com/components/find
Last updated: 2026-11-10

## About

Find in a page, by light. Everything dims except what you searched for and the sentence it sits in, and one plate carries you through every match.

## Details

- Wrap any content. It’s never touched: a lit copy sits on top, so it works round any markup.
- It starts from where you’re reading, not the top of the page.
- Esc brings the page back around your sentence, so your eye keeps its place.
- Use `open` and `onOpenChange` to open it from your own button on a phone.

## Keyboard shortcuts

| Keys | Action |
| --- | --- |
| ⌘F | Open |
| Enter | Next match |
| ⇧Enter | Previous match |
| Esc | Close and stay here |

## Install

```bash
npx shadcn add https://detentui.com/r/find
```

## Related
- [All components](https://detentui.com/components)
- [Pro](https://detentui.com/pro)
