Update size description
MODIFY
app/components/primer/spinner_component.rb
app/components/primer/spinner_component.rb
@@ -22,7 +22,7 @@ module Primer
# @example 80|Large
# <%= render(Primer::SpinnerComponent.new(size: :large)) %>
#
- # @param size [Symbol] Sets the size of the spinner
+ # @param size [Symbol] One of <%= Primer::SpinnerComponent::SIZE_OPTIONS.map { |k| "`:#{k}`" }.to_sentence(last_word_connector: ', or ') %>
def initialize(size: DEFAULT_SIZE, **kwargs)
@kwargs = kwargs
@kwargs[:tag] = :svg

MODIFY
docs/content/components/spinner.md
docs/content/components/spinner.md
@@ -34,4 +34,4 @@ Use Primer::SpinnerComponent to let users know that content is being loaded.
| Name | Type | Default | Description |
| :- | :- | :-: | :- |
-| size | Symbol | DEFAULT_SIZE | Sets the size of the spinner |
+| size | Symbol | DEFAULT_SIZE | One of `:small`, `:medium`, or `:large` |

Update size description