Module: UI::SidebarSeparatorBehavior
- Included in:
- SidebarSeparator
- Defined in:
- app/behaviors/ui/sidebar_separator_behavior.rb
Overview
SeparatorBehavior
Shared behavior for SidebarSeparator component.
Instance Method Summary collapse
- #sidebar_separator_classes ⇒ Object
- #sidebar_separator_data_attributes ⇒ Object
- #sidebar_separator_html_attributes ⇒ Object
Instance Method Details
#sidebar_separator_classes ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/behaviors/ui/sidebar_separator_behavior.rb', line 17 def classes_value = respond_to?(:classes, true) ? classes : @classes TailwindMerge::Merger.new.merge([ , classes_value ].compact.join(" ")) end |
#sidebar_separator_data_attributes ⇒ Object
25 26 27 28 29 |
# File 'app/behaviors/ui/sidebar_separator_behavior.rb', line 25 def { slot: "sidebar-separator" } end |
#sidebar_separator_html_attributes ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/behaviors/ui/sidebar_separator_behavior.rb', line 9 def { class: , data: , role: "separator" } end |