chore(design-system): content-primitive Storybook stories (PR 2 of #18191)#18200
Merged
Conversation
PR 2 of #18191. Adds Storybook stories for the three in-content widget primitives reused across docs, tutorial, and homepage surfaces, and migrates each loose .tsx into Foo/index.tsx so the story lives alongside. Components covered: Codeblock (client), CopyToClipboard (client, plus the CopyButton named export), and ProductList (server). Each uses the Components / Content / <Name> title pattern and opts out of Chromatic snapshots at the meta level. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
pettinarip
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
PR 2 of #18191. Adds Storybook stories for the three in-content widget primitives reused across docs, tutorial, and homepage surfaces. All three loose
Foo.tsxfiles are migrated toFoo/index.tsxso the story files can live alongside them.Components covered:
Codeblock(client) -- migrated; covers solidity / js / python / bash, the collapse control, and thefromHomepagemode that hides the top barCopyToClipboard(client) -- migrated; render-prop default export plus aCopyButtonVariantstory for the namedCopyButtonexportProductList(server) -- migrated; covers the with-image / without-image / without-link variants and thecategoryheadingEach story uses the
Components / Content / <Name>title pattern and opts out of Chromatic snapshots at the meta level per the #18121 convention.Related to #18191. Does not close the issue.
Test plan
pnpm storybook-- the three new entries appear underComponents / Content / *and render without console errorsCollapsiblestory@/components/Fooimports after the migrationsClaude (Opus 4.7) co-authored these changes.