add storybook story to text component
ADD
stories/primer/text_component_stories.rb
+# frozen_string_literal: true
+
+class Primer::TextComponentStories < ViewComponent::Storybook::Stories
+ layout layout "storybook_preview"
+
+ story(:text) do
+ content do
+ "text"
+ end
+ end
+end

MODIFY
test/components/component_test.rb
test/components/component_test.rb
@@ -91,7 +91,6 @@ class PrimerComponentTest < Minitest::Test
"component", # No story needed
"view_components", # No story needed
"slot", "component", # No story needed
- "text_component",
"subhead_component",
"flex_item_component",
"dropdown_menu_component",

add storybook story to text component