Class: Primer::BlankslateComponent::Spinner

Inherits:
Slot
  • Object
show all
Defined in:
app/components/primer/blankslate_component.rb

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Method Summary collapse

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Spinner

Returns a new instance of Spinner.

Parameters:

  • size (Symbol)

    <%= one_of(Primer::SpinnerComponent::SIZE_MAPPINGS) %>

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>



131
132
133
134
# File 'app/components/primer/blankslate_component.rb', line 131

def initialize(**system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:mb] ||= 3
end

Instance Method Details

#componentObject



136
137
138
# File 'app/components/primer/blankslate_component.rb', line 136

def component
  Primer::SpinnerComponent.new(**@system_arguments)
end