Class: Railsboot::Button::ButtonComponent
- Inherits:
-
Railsboot::ButtonComponent
- Object
- ViewComponent::Base
- Component
- Railsboot::ButtonComponent
- Railsboot::Button::ButtonComponent
- Defined in:
- app/components/railsboot/button/button_component.rb
Constant Summary
Constants inherited from Railsboot::ButtonComponent
Railsboot::ButtonComponent::DEFAULT_SIZE, Railsboot::ButtonComponent::DEFAULT_TAG, Railsboot::ButtonComponent::DEFAULT_VARIANT, Railsboot::ButtonComponent::SIZES, Railsboot::ButtonComponent::TAGS, Railsboot::ButtonComponent::VARIANTS
Constants inherited from Component
Component::COLORS, Component::DEFAULT_COLOR
Instance Method Summary collapse
-
#initialize(**html_attributes) ⇒ ButtonComponent
constructor
A new instance of ButtonComponent.
Methods inherited from Railsboot::ButtonComponent
Constructor Details
#initialize(**html_attributes) ⇒ ButtonComponent
Returns a new instance of ButtonComponent.
2 3 4 |
# File 'app/components/railsboot/button/button_component.rb', line 2 def initialize(**html_attributes) super(tag: "button", **html_attributes) end |