> For the complete documentation index, see [llms.txt](https://docs.frayme.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frayme.ai/components/components/feedback/empty-state.md).

# EmptyState

Zero-data placeholder panel: centered icon + title + description, with an optional call-to-action (children, e.g. a Button). Use when a list/table/search has no results yet.

Accepts child elements via `children` (the `default` slot).

## Example

```json
{
  "root": "empty-state",
  "elements": {
    "empty-state": {
      "type": "EmptyState",
      "props": {
        "title": "No results",
        "description": "Try adjusting your filters.",
        "icon": "search"
      }
    }
  }
}
```

## Props

| Prop          | Type                                                      | Description                                                                                                                                                                                                     |
| ------------- | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `title`       | `string`                                                  | The zero-data headline (e.g. "No results"). Short and neutral — pair with `description` for the "what to do next" guidance.                                                                                     |
| `description` | `string`                                                  | Supporting copy explaining the empty state / what to do next.                                                                                                                                                   |
| `icon`        | `string`                                                  | Centered illustrative icon glyph by NAME from the closed icon registry (e.g. "search", "mail", "calendar"). Never raw SVG; unknown names render nothing.                                                        |
| `size`        | `"sm" \| "md" \| "lg"`                                    | Icon + type scale and vertical padding (default md).                                                                                                                                                            |
| `align`       | `"center" \| "start"`                                     | Content alignment: center (default — classic centered empty state) · start (left-aligned).                                                                                                                      |
| `mutedColor`  | `string`                                                  | Secondary/muted text colour — the supporting description line under the title AND (when set) the focal icon disk: its glyph plus a soft 12% tinted disk fill (default the muted-foreground token / muted disk). |
| `fontSize`    | `string \| number`                                        | Exact title font-size (e.g. 22px / 1.375rem). Overrides ONLY the title type scale of the `size` enum (the default); icon size + panel padding stay on `size`.                                                   |
| `weight`      | `"light" \| "normal" \| "medium" \| "semibold" \| "bold"` | Title font weight (default semibold). Reach for `bold` for a heavier heading or `medium`/`normal` for a softer one.                                                                                             |
| `font`        | `"sans" \| "serif" \| "mono" \| "rounded" \| "display"`   | Typeface for the whole empty-state panel; cascades to descendants via font inheritance (sans · serif · mono · rounded · display). Omit to inherit the theme font.                                               |
| `tracking`    | `"tighter" \| "tight" \| "normal" \| "wide" \| "wider"`   | Letter-spacing of the `title` (tighter · tight · normal · wide · wider; default normal).                                                                                                                        |
| `leading`     | `"tight" \| "snug" \| "normal" \| "relaxed" \| "loose"`   | Line-height of the `title` (tight · snug · normal · relaxed · loose; default normal — sm sets it explicitly, md/lg inherit the browser normal).                                                                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.frayme.ai/components/components/feedback/empty-state.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
