Module: UI::EmptyTitleBehavior
- Included in:
- EmptyTitle, EmptyTitleComponent
- Defined in:
- app/helpers/ui/empty_behavior.rb,
app/behaviors/ui/empty_behavior.rb
Overview
EmptyTitleBehavior - Shared behavior for EmptyTitle sub-component
Instance Method Summary collapse
Instance Method Details
#empty_title_classes ⇒ Object
81 82 83 84 85 86 87 |
# File 'app/helpers/ui/empty_behavior.rb', line 81 def empty_title_classes classes_value = respond_to?(:classes, true) ? classes : @classes TailwindMerge::Merger.new.merge([ "font-semibold tracking-tight text-base", classes_value ].compact.join(" ")) end |
#empty_title_html_attributes ⇒ Object
74 75 76 77 78 79 |
# File 'app/helpers/ui/empty_behavior.rb', line 74 def empty_title_html_attributes { class: empty_title_classes, data: {slot: "empty-title"} } end |