# Modal ```rust demo let show = create_rw_signal(false); view! { "hello" } ``` ### Modal Props | Name | Type | Default | Description | | -------------- | --------------------- | -------------------- | ------------------------------------------- | | class | `OptionalProp>` | `Default::default()` | Addtional classes for the modal element. | | show | `Model` | | Whether to show modal. | | title | `MaybeSignal` | `Default::default()` | Modal title. | | width | `MaybeSignal` | `600px` | Modal width. | | z_index | `MaybeSignal` | `2000` | z-index of the modal. | | mask_closeable | `MaybeSignal` | `true` | Whether to emit hide event when click mask. | | close_on_esc | `bool` | `true` | Whether to close modal on Esc is pressed. | | closable | `bool` | `true` | Whether to display the close button. | | children | `Children` | | Modal's content. | ### Modal Slots | Name | Default | Description | | ----------- | ------- | --------------- | | ModalFooter | `None` | Footer content. |