# `MingaEditor.UI.Notification.Action`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_editor/ui/notification/action.ex#L1)

Inline action shown on a GUI notification.

The action id is the stable wire value sent back by native frontends. The optional dispatch value tells the BEAM how to route the click.

# `dispatch`

```elixir
@type dispatch() :: {:command, atom()} | {:event, atom(), term()} | nil
```

BEAM-side routing target for a notification action.

# `t`

```elixir
@type t() :: %MingaEditor.UI.Notification.Action{
  dispatch: dispatch(),
  id: String.t(),
  label: String.t()
}
```

# `new`

```elixir
@spec new(keyword() | map()) :: t()
```

Builds an action from attrs, normalizing ids and labels to strings.

---

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