add story to label component
ADD
stories/primer/label_component_stories.rb
+# frozen_string_literal: true
+
+class Primer::LabelComponentStories < ViewComponent::Storybook::Stories
+ layout "storybook_preview"
+
+ story(:label) do
+ controls do
+ title "this is a label"
+ select(:scheme, Primer::StoriesHelper.array_to_options(Primer::LabelComponent::SCHEME_MAPPINGS.keys), :blue)
+ select(:variant, Primer::StoriesHelper.array_to_options(Primer::LabelComponent::VARIANT_MAPPINGS.keys), :large)
+ end
+
+ content do
+ "This is a label"
+ end
+ end
+end

add story to label component