# Modal
> AstrolModal is a Blazor component used to generate a popup window on the page to display additional content, allowing advanced interaction with the user.
Source page: https://doc.astrolui.com/basic-component/modal
## 1. Demo AstrolModal
In this example, [buttons](/basic-component/button) are implemented, so it is recommended to refer to their documentation for more information.
```razor
@using Astrol.Entities.Basic.UI
@using Astrol.Component.Basic.Button
@using Astrol.Component.Basic.Modal
Hello World!
@code {
```
```csharp
private bool _statusModal = false;
private void StatusModal(bool newStatus) {
_statusModal = newStatus;
}
}
```
### Supported parameters
- Status **(bool)**, modal visibility. **@bind-Status** is not supported: update your variable in **OnChangeStatus**.
- OnChangeStatus **(EventCallback)**, raised with **false** when the modal closes itself (Close button, X, click outside or **Esc**).
- Title **(string)**, modal title (also its accessible name).
- ChildContent **(RenderFragment)**, modal content.
- Class **(string)**, custom css class.
- Draggable **(bool)**, can be moved by dragging the header (default **true**).
- Resizable **(bool)**, can be resized from the edges (default **true**).
- ClosedInteractive **(bool)**, closes when clicking outside the content or pressing **Esc** (default **true**).
- Outline **(bool)** and OutlineButton **(bool)**, outline style for the modal and the close button (default **false**).
- ShowHead **(bool)**, shows the header with title and buttons (default **true**).
- BodyPadding **(bool)**, inner spacing of the body so the content does not touch the edges (default **true**, 16px; change it with the **--aui-modal-padding** variable). With **false** the content fills the whole body (tables, images, editors).
- ShowOptions **(bool)**, shows the bottom bar, where **ButtonOption (RenderFragment)** and the close button are rendered (default **true**).
- ShowButtonClose **(bool)**, Close button visibility (default **true**).
- TextClose, TextMaximize, TextRestore **(string)**, button texts (default follows the app language).
- Width **(AstrolWidth)**, initial max width (default **Middle**), and WidthMaximize **(AstrolWidth?)**, width when maximized; the maximize button only appears when it is set and differs from Width:
- **AstrolWidth.Mini** 300px
- **AstrolWidth.Short** 450px
- **AstrolWidth.Middle** 768px
- **AstrolWidth.Large** 1200px
- **AstrolWidth.Full** 100% of the browser
- OnChangeWidth **(EventCallback)**, raised with the new width when maximizing or restoring.
- The modal is a native **