add storybook for box component
ADD
stories/primer/box_component_stories.rb
+# frozen_string_literal: true
+
+class Primer::BoxComponentStories < ViewComponent::Storybook::Stories
+ layout "storybook_preview"
+
+ story(:box) do
+ content do
+ "This is a div"
+ end
+ end
+end

MODIFY
test/components/component_test.rb
test/components/component_test.rb
@@ -83,9 +83,9 @@ class PrimerComponentTest < Minitest::Test
def test_components_storybook_count
+ # Should be deprecated each time a new storybook is added to a component
# Should be incremented if a new view component is added without a storybook
- # Should be incremented if a new view component is added without a storybook
- expected_missing_stories = 12
+ expected_missing_stories = 11
expected_components_count = COMPONENTS_WITH_ARGS.length

add storybook for box component