Confirm Modal

Attribute Type Documentation Default Value
id :string "confirm-modal"
show :boolean false
title :string "Confirm"
Required message * :string
confirm_text :string "Confirm"
cancel_text :string "Cancel"
close_label :string "Close"
variant :string "danger"
on_confirm %JS{} %Phoenix.LiveView.JS{ops: []}
on_cancel %JS{} %Phoenix.LiveView.JS{ops: []}
close_on_confirm :boolean true
close_on_cancel :boolean true