Scaffold spinner component
ADD
app/components/primer/spinner_component.html.erb
+<span title="<%= @title %>"><%= content %></span>

ADD
app/components/primer/spinner_component.rb
+module Primer
+ class SpinnerComponent < Primer::Component
+ def initialize(title:)
+ @title = title
+ end
+ end
+end
\ No newline at end of file

MODIFY
app/components/primer/view_components.rb
app/components/primer/view_components.rb
@@ -43,6 +43,7 @@ require_relative "link_component"
require_relative "octicon_component"
require_relative "popover_component"
require_relative "progress_bar_component"
+require_relative "spinner_component"
require_relative "state_component"
require_relative "subhead_component"
require_relative "text_component"

ADD
stories/primer/spinner_component_stories.rb
+# frozen_string_literal: true
+
+class Primer::SpinnerComponentStories < ViewComponent::Storybook::Stories
+ layout "storybook_preview"
+
+ story(:spinner) do
+ controls do
+ text(:title, "github")
+ end
+ end
+end
+
\ No newline at end of file

Scaffold spinner component