Components
modal
Centered modal dialog.
A centered modal dialog overlay. Defined inside screens and triggered by :to "#id".
(button "Open Modal" :to "#my-modal")
(button "Close" :to :close)
accepts contentaccepts children
Identity
| Property | Type | Default |
|---|
:id | string | - |
Spacing
| Property | Type | Default |
|---|
:gap | number | 0 |
:padding | number | 0 |
Dimensions
| Property | Type | Default |
|---|
:width | any | - |
:height | any | - |
Position
| Property | Type | Default |
|---|
:position | symbol | - |
:top | flag | - |
:bottom | flag | - |
:left | flag | - |
:right | flag | - |
State
| Property | Type | Default |
|---|
:open | flag | - |
Content
| Property | Type | Default |
|---|
:title | string | - |
Note: Default max width is 600px or 90% of container.