Sha256: 1b0d5e2a2c6b5aa53d7103c0a280dc3d62fbc2394d6223a259c1c56a69a63bb1

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

module Components::AlertDialogHelper
  def render_alert_dialog(**options, &block)
    content = capture(&block) if block
    render "components/ui/alert_dialog", content: content, **options
  end

  def alert_dialog_trigger(&block)
    content_for :alert_dialog_trigger, capture(&block), flush: true
  end

  def alert_dialog_content(&block)
    content_for :alert_dialog_content, capture(&block), flush: true
  end

  def alert_dialog_continue(&block)
    content_for :alert_dialog_continue, capture(&block), flush: true
  end

  def alert_dialog_cancel(&block)
    content_for :alert_dialog_cancel, capture(&block), flush: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.14 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.13 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.12 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.10 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.8 app/helpers/components/alert_dialog_helper.rb
shadcn-ui-0.0.5 app/helpers/components/alert_dialog_helper.rb