Class: JetUi::Spinner::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/spinner/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(size: 6, **options) ⇒ Component

Returns a new instance of Component.



6
7
8
9
# File 'app/components/jet_ui/spinner/component.rb', line 6

def initialize(size: 6, **options)
  @size    = size
  @options = options
end

Instance Method Details

#callObject



11
12
13
# File 'app/components/jet_ui/spinner/component.rb', line 11

def call
  render JetUi::Icon::Component.new('spinner', size: @size, **@options)
end