Class: UI::InputGroupTextComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::InputGroupTextComponent
- Includes:
- InputGroupTextBehavior
- Defined in:
- app/view_components/ui/input_group_text_component.rb
Overview
InputGroupTextComponent - ViewComponent implementation
A text element for displaying static text within input groups. Uses InputGroupTextBehavior concern for shared styling logic.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ InputGroupTextComponent
constructor
A new instance of InputGroupTextComponent.
Methods included from InputGroupTextBehavior
#input_group_text_classes, #input_group_text_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ InputGroupTextComponent
Returns a new instance of InputGroupTextComponent.
23 24 25 26 |
# File 'app/view_components/ui/input_group_text_component.rb', line 23 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
28 29 30 31 32 |
# File 'app/view_components/ui/input_group_text_component.rb', line 28 def call content_tag :span, **input_group_text_html_attributes do content end end |