Class: BetterUi::General::Tag::Component

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/better_ui/general/tag/component.rb

Instance Method Summary collapse

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, **options)
  @text = text
  @theme = theme.to_sym
  @size = size.to_sym 
  @style = style.to_sym
  @options = options
end