pub fn Dialog(props: DialogProps) -> impl IntoView
Expand description
A dialog component.
§Required Props
- kind:
DialogKind
- The kind of dialog to display.
- title:
impl Into<TextProp>
- The title of the dialog.
- msg:
impl Into<TextProp>
- The message of the dialog.
§Optional Props
- open:
impl Into<MaybeSignal<bool>>
- Whether the dialog is open.
- close: [
impl Into<Callback<(), ()>>
](Callback<(), ()>)- The callback to close the dialog.