# Announcement pill — Detent

> The pill above a headline. A line of light runs round it once as you reach for it, and the tag says what pressing it will do.

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

## About

The pill above a headline. A line of light runs round it once as you reach for it, and the tag says what pressing it will do.

## Details

- Set `tag` and `action` for the two words it rolls between.
- Add `dismissible` for a close button, and use `onDismiss` to remember the choice.
- Pass your router’s link through `linkAs`.
- With reduced motion the light stays off.

## Install

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

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