Class: Railsboot::Button::ButtonComponent

Inherits:
Railsboot::ButtonComponent show all
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

Methods inherited from Railsboot::ButtonComponent

#button?, #input?, #link?

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