Sha256: f7bf926fc516f6590fcdd33ffbdcb9fa8a9dfa646f4948c75d152da97afad422

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

<!--prettier-ignore-->
<%= render "layouts/documentation/component_header",
  title: "Alert Dialog",
  description: "A modal dialog that interrupts the user with important content and expects a response." %>

<%= content_for :preview, flush: true do %>
<div class="w-full flex justify-center">
  <!--prettier-ignore-->

  <!--prettier-ignore-->
  <%= render_alert_dialog(
    trigger: render_button("Open Dialog", variant: :outline, data: {action: "ui--dialog#open" }),
    continue: render_button("Continue"),
    label: "Are you absolutely sure?",
    description: "This action cannot be undone. This will permanently delete your account and remove your data from our servers.",
  ) %>
</div>
<% end %>

<%= render_preview %>

<h2 class="font-heading scroll-m-20 border-b pb-2 text-2xl font-semibold tracking-tight first:mt-0" id="installation">Installation</h2>

<h2 class="font-heading mt-12 scroll-m-20 border-b pb-2 mb-2 text-2xl font-semibold tracking-tight first:mt-0" id="usage"><a href="/docs/components/dialog#usage">Usage</a></h2>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shadcn-ui-0.0.3 app/views/examples/components/alert-dialog.html.erb
shadcn-ui-0.0.2 app/views/examples/components/alert-dialog.html.erb
shadcn-ui-0.0.1 app/views/examples/components/alert-dialog.html.erb