Class: Primer::BlankslateComponent::Spinner

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

Overview

:nodoc:

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Method Summary collapse

Methods included from JoinStyleArgumentsHelper

#join_style_arguments

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean

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 %>



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

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

Instance Method Details

#componentObject



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

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