# `PhoenixKitDocumentCreator.Web.Components.CreateDocumentModal`
[🔗](https://github.com/BeamLabEU/phoenix_kit_document_creator/blob/0.2.8/lib/phoenix_kit_document_creator/web/components/create_document_modal.ex#L1)

Multi-step modal for creating documents.

Step 1: Choose blank document or pick a template from Google Drive.
Step 2: If template has variables, fill them in.
Step 3: Create document and redirect to Google Docs.

# `modal`

## Attributes

* `open` (`:boolean`) (required)
* `templates` (`:list`) - Defaults to `[]`.
* `step` (`:string`) - Defaults to `"choose"`.
* `selected_template` (`:any`) - Defaults to `nil`.
* `variables` (`:list`) - Defaults to `[]`.
* `creating` (`:boolean`) - Defaults to `false`.
* `thumbnails` (`:map`) - Defaults to `%{}`.

---

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