Class: PhlexKit::SidebarGroupContent
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::SidebarGroupContent
- Defined in:
- app/components/phlex_kit/sidebar/sidebar_group_content.rb
Overview
Content container within a SidebarGroup, ported from shadcn/ui's SidebarGroupContent. See sidebar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ SidebarGroupContent
constructor
A new instance of SidebarGroupContent.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ SidebarGroupContent
Returns a new instance of SidebarGroupContent.
5 6 7 |
# File 'app/components/phlex_kit/sidebar/sidebar_group_content.rb', line 5 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template(&block) ⇒ Object
9 10 11 |
# File 'app/components/phlex_kit/sidebar/sidebar_group_content.rb', line 9 def view_template(&block) div(**mix({ class: "pk-sidebar-group-content" }, @attrs), &block) end |