---
title: "API Keys Illustration 01"
description: "A key row with a masked secret and a copy button, and a dashed row for a new key, for developer settings with no keys."
url: https://gelatinui.com/components/api-keys-illustration-01
markdown_url: https://gelatinui.com/components/api-keys-illustration-01.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/api-keys-illustration-01"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# API Keys Illustration 01

> A key row with a masked secret and a copy button, and a dashed row for a new key, for developer settings with no keys.

Page: https://gelatinui.com/components/api-keys-illustration-01

## When to use it

Best for: An API key, access token, or developer settings page with no keys.

- Use it as the picture of an `Empty`, in an `EmptyMedia` with no box.
- Keep the title of the `Empty` as the text: the picture is decorative and hidden from screen readers.
- Set `animateIn={false}` when the empty state swaps in often.

## When not to use it

- For a small panel or a table cell, use the icon look of [Empty](https://gelatinui.com/components/empty.md).
- For content that loads soon, use a [Skeleton](https://gelatinui.com/components/skeleton.md).

## Notes for agents

- A raised key row with a key icon, a masked secret, and a copy button, and a dashed row for the first key; the rows fade at both sides.
- The default `fade` is `x`; the stage is 320 × 168 at most and shrinks in a narrow box.
- It takes every prop of `Illustration`: `fade`, `animateIn`, `enterFrom`, and the Motion `div` props.

## Anatomy

```text
ApiKeysIllustration01
```

## API reference

### ApiKeysIllustration01

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `fade` | `"bottom" \| "none" \| "top" \| "x"` | "x" |  |
| `animateIn` | `boolean` |  | Play the enter when the stage first scrolls into view (default `true`). Set `false` to show the rest pose at once, for example when the empty state swaps in often. |
| `enterFrom` | `"first" \| "last"` |  | Which part starts the enter: the first one in the tree (default) or the last one. |
| `children` | `ReactNode` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ApiKeysIllustration01 | `api-keys-illustration-01` |  | `--radius` |  |

## Usage

Put it in the `EmptyMedia` of an `Empty`, with no box.

The sample also uses `button`, `empty`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/api-keys-illustration-01 @gelatin-ui/button @gelatin-ui/empty
```

```tsx title="empty-api-keys.tsx"
import { PlusIcon } from "@phosphor-icons/react/ssr";

import { ApiKeysIllustration01 } from "@/components/pro/illustrations/api-keys-illustration-01";
import { Button } from "@/components/ui/button";
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty";

export function EmptyApiKeys() {
  return (
    <Empty>
      <EmptyHeader>
        <EmptyMedia>
          <ApiKeysIllustration01 />
        </EmptyMedia>
        <EmptyTitle>No API keys</EmptyTitle>
        <EmptyDescription>Create an API key to call the API from your code.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button>
          <PlusIcon aria-hidden data-icon="inline-start" />
          Create API key
        </Button>
      </EmptyContent>
    </Empty>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/api-keys-illustration-01
```

It adds 14 registry items: 13 files, 2529 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Empty](https://gelatinui.com/components/empty.md)
- [Skeleton](https://gelatinui.com/components/skeleton.md)

## Motion

| Part | Motion |
| --- | --- |
| Enter | panel · the parts rise in once, 60ms apart, when 40% of the stage is in view |
| Hover | glide · the key row lifts 4px and the key turns a quarter; a touch shows no hover pose |
