Sha256: 380068694cc5130402c1ed662204509f280fa74558738e5e24b899464a31a8b5

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

module Components::AlertDialogHelper
  def render_alert_dialog(trigger:, label:, description:, continue:, **options)
    cancel = options[:cancel] || render_button("Cancel", class: "mt-2 sm:mt-0", data: {action: "ui--dialog#close"})
    render "components/ui/alert_dialog", trigger:, label:, description:, continue:, cancel:, **options
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shadcn-ui-0.0.4 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.3 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.2 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.1 app/helpers/components/alert_dialog_helper.rb