Module: UI::CommandSeparatorBehavior
- Included in:
- CommandSeparator, CommandSeparatorComponent
- Defined in:
- app/behaviors/ui/command_separator_behavior.rb
Overview
SeparatorBehavior
Shared behavior for CommandSeparator component.
Instance Method Summary collapse
Instance Method Details
#command_separator_classes ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/behaviors/ui/command_separator_behavior.rb', line 17 def command_separator_classes classes_value = respond_to?(:classes, true) ? classes : @classes TailwindMerge::Merger.new.merge([ command_separator_base_classes, classes_value ].compact.join(" ")) end |
#command_separator_html_attributes ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/behaviors/ui/command_separator_behavior.rb', line 9 def command_separator_html_attributes { class: command_separator_classes, data: {slot: "command-separator"}, role: "separator" } end |