Class: BetterUi::General::Tag::Component
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- BetterUi::General::Tag::Component
- Defined in:
- app/components/better_ui/general/tag/component.rb
Instance Method Summary collapse
-
#initialize(text:, theme: :white, size: :medium, style: :filled, **options) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(text:, theme: :white, size: :medium, style: :filled, **options) ⇒ Component
Returns a new instance of Component.
7 8 9 10 11 12 13 |
# File 'app/components/better_ui/general/tag/component.rb', line 7 def initialize(text:, theme: :white, size: :medium, style: :filled, **) @text = text @theme = theme.to_sym @size = size.to_sym @style = style.to_sym = end |