Class: Shadcn::MenubarRadioGroupComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::MenubarRadioGroupComponent
- Defined in:
- app/components/shadcn/menubar_radio_group_component.rb
Overview
Menubar Radio Group component Group of mutually exclusive radio items
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(value: nil, **options, &block) ⇒ MenubarRadioGroupComponent
constructor
A new instance of MenubarRadioGroupComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(value: nil, **options, &block) ⇒ MenubarRadioGroupComponent
Returns a new instance of MenubarRadioGroupComponent.
12 13 14 15 |
# File 'app/components/shadcn/menubar_radio_group_component.rb', line 12 def initialize(value: nil, **, &block) super(**, &block) @value = value end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'app/components/shadcn/menubar_radio_group_component.rb', line 17 def call content_tag(:div, group_content, group_attributes) end |