pub fn Modal(props: ModalProps) -> impl IntoViewExpand description
A modal dialog.
§Required Props
- id:
impl Into<String> - kind:
DialogKind- The kind of dialog to display.
- open:
impl Into<Signal<bool>>- Whether the dialog is open.
- title:
impl Into<TextProp>- The title of the dialog.
- msg:
impl Into<TextProp>- The message of the dialog.
§Optional Props
- close: [
impl Into<Callback<(), ()>>](Callback<(), ()>)- The callback to close the dialog.