# `MingaEditor.State.Prompt`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_editor/state/prompt.ex#L1)

Groups prompt-related fields from EditorState.

Tracks the current prompt handler, input text, cursor position,
and label. Used by `MingaEditor.PromptUI` for text input prompts.

# `t`

```elixir
@type t() :: %MingaEditor.State.Prompt{
  context: map() | nil,
  cursor: non_neg_integer(),
  handler: module() | nil,
  label: String.t(),
  text: String.t()
}
```

# `open?`

```elixir
@spec open?(t()) :: boolean()
```

Returns true if a prompt is currently open.

---

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