Class: Shadcn::AlertDialogFooterComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/alert_dialog_footer_component.rb

Overview

Alert Dialog Footer component

Constant Summary collapse

BASE_CLASSES =
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



15
16
17
# File 'app/components/shadcn/alert_dialog_footer_component.rb', line 15

def call
  (:div, safe_join([cancel, action, content].compact), class: merge_classes(BASE_CLASSES))
end