# `Macaw.Builtin.StatusGrid`
[🔗](https://github.com/dcoai/macaw/blob/v0.6.0/lib/macaw/builtin/status_grid.ex#L1)

The built-in status grid (spec/05 §6.2), `"macaw.status_grid"`: one tile per thing,
each showing its state, of kind `:content`, `:pure`.

  * **parameters:** `label` (text, `""`), the grid's heading, none when empty;
  * **declarations:** one slot, `rows`, with roles `name` (the identity field, any of the
    types an identity takes), `status` (a `:category`) and `detail` (optional, any
    type); reading load `:glance`;
  * **markup:** a list of tiles in the order of the `name` field's values (by its type,
    as a source orders), each with the name, the state's words and the detail. A tile's
    class is `mw-status-<role>`: the role the `status` field's schema gives its state
    (`:good`, `:warning`, `:bad`, `:info`, `:neutral` or a theme's own word), `neutral`
    for a state with none. Color is never the only cue: the state's words are always
    shown. A capped or stale grid draws its notice above its tiles. Handed a selection in
    its context (spec/03 §1.7.7), the tile holding it is `mw-selected` with
    `aria-current`, every other `mw-muted`;
  * **stylesheet:** `stylesheet/0`, served at `stylesheet_path/0`, its content address.

# `roles`

```elixir
@spec roles() :: [String.t()]
```

The status roles the stylesheet colors; any other role is drawn as `neutral`'s.

# `stylesheet`

```elixir
@spec stylesheet() :: String.t()
```

The grid's one static stylesheet: the list, its tiles, and a rule per built-in status
role, every color a theme custom property with the default theme's value as its
fallback. It loads and imports nothing.

# `stylesheet_path`

```elixir
@spec stylesheet_path() :: String.t()
```

The stylesheet's path, its content address (`Macaw.Component.Stylesheet.path/1`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
