API Reference

PropTypeDefaultDescription
IDstring""Unique id (wires the trigger to the dialog and scopes Alpine state).
Titlestring""Dialog heading.
Bodystring""Dialog body text.
TriggerLabelstring""Label of the button that opens the modal.
PrimaryLabelstring""Primary button label.
PrimaryAction*ButtonActionnilPrimary button behavior (OnClick or hx-* fields).
SecondaryLabelstring""Secondary button label (omit to hide).
SecondaryAction*ButtonActionnilSecondary button behavior.
VariantVariantDefaultAlert color: "default", "success", "info", "warning", "danger".
AlertModeboolfalseRender the compact icon-led alert dialog layout.
PanelClassstring""Extra classes on the dialog.