# Settings — Detent

> A whole settings area where every page is real: API keys with spend this month, members with roles, the workspace, and security with a careful danger zone.

Canonical: https://detentui.com/blocks/settings
Last updated: 2026-11-10

## About

A whole settings area where every page is real: API keys with spend this month, members with roles, the workspace, and security with a careful danger zone.

## Details

- Every item in the sidebar is a page that works. Keys and people are dense tables with a search, owners and last use; the workspace and security are short forms whose Save only wakes once something has changed.
- Each key shows its spend against its monthly limit as a row of cells that warm toward amber as it nears the limit, so the one about to run out is the one you notice.
- A new key is made in a side sheet in three steps, details, review and secret, and the review shows the same request as a curl call, filled in with what you chose.
- A new key is shown once, and it decrypts into place, one character settling after another, so you know it’s real.
- Copying it blooms once; the new key lands at the top of the list with a soft highlight that fades as you take it in.
- Rotating changes the key in place, column by column, and keeps the old one working for a day, with the time left counting down beside it.
- Invites arrive as pending, with a way to resend, and never reorder the people already there.
- Deleting the workspace takes a deliberate hold, and even then there’s a week to undo it.
- The sheet opens over the list, not over the page, so the sidebar stays where it was; Escape closes it until the secret is showing.

## Keyboard shortcuts

| Keys | Action |
| --- | --- |
| Enter | Create the key |
| Space | Hold to delete |

## Install (Pro required)

```bash
npx shadcn add @detent-pro/settings
```

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