Dialog

Terms of Service

Please read the following terms carefully.

By using this service, you agree to our terms and conditions.

Attribute Type Documentation Default Value
Required id * :string
show :boolean false
on_cancel :any
show_close :boolean true
class :any []
overlay_class :any []
close_class :any []
animation_duration :integer 200
rest :global
Required inner_block * :slot
<.dialog_header>
  <.dialog_title id="dialog-no-close-title">Terms of Service</.dialog_title>
  <.dialog_description id="dialog-no-close-description">
    Please read the following terms carefully.
  </.dialog_description>
</.dialog_header>
<p class="text-sm text-muted-foreground">
  By using this service, you agree to our terms and conditions.
</p>
<.dialog_footer>
  <.dialog_close on_cancel={Phoenix.LiveView.JS.dispatch("phx-shadcn:hide")}>
    <.button variant="outline">Decline</.button>
  </.dialog_close>
  <.button phx-click={Phoenix.LiveView.JS.dispatch("phx-shadcn:hide")}>Accept</.button>
</.dialog_footer>
close :slot