Class: LightningUiKit::SidebarSectionComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- LightningUiKit::SidebarSectionComponent
- Defined in:
- app/components/lightning_ui_kit/sidebar_section_component.rb
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(title: nil, **options) ⇒ SidebarSectionComponent
constructor
A new instance of SidebarSectionComponent.
- #title_classes ⇒ Object
Methods inherited from BaseComponent
Methods included from HeroiconHelper
Constructor Details
#initialize(title: nil, **options) ⇒ SidebarSectionComponent
Returns a new instance of SidebarSectionComponent.
4 5 6 7 |
# File 'app/components/lightning_ui_kit/sidebar_section_component.rb', line 4 def initialize(title: nil, **) @title = title @options = end |
Instance Method Details
#classes ⇒ Object
9 10 11 |
# File 'app/components/lightning_ui_kit/sidebar_section_component.rb', line 9 def classes merge_classes(["lui:space-y-1", @options[:class]].compact.join(" ")) end |
#title_classes ⇒ Object
13 14 15 |
# File 'app/components/lightning_ui_kit/sidebar_section_component.rb', line 13 def title_classes "lui:px-3 lui:py-2 lui:text-[0.6875rem] lui:font-semibold lui:text-foreground-faint lui:uppercase lui:tracking-widest" end |