Add AssetIcon props documentation and Storybook story#3362
Add AssetIcon props documentation and Storybook story#3362
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: sam-is-content <166558611+sam-is-content@users.noreply.github.com>
|
Sam Ashley (@sam-is-content) are you the owner of this PR? Could you add please some before/after screenshots for this? |
size-limit report 📦
|
|
Marking pull request as stale since there was no activity for 30 days |
AssetIconhad no documentation entry — its props were invisible to consumers sinceREADME.mdxonly referencedAsset.tsxin itstypescriptfrontmatter and had no<PropsTable>entry forAssetIcon.Changes
README.mdx: Add./src/AssetIcon/AssetIcon.tsxtotypescriptfrontmatter; addAssetIconto import examples; add### AssetIconusage section and<PropsTable of="AssetIcon" />to Props API referenceexamples/AssetIconExample.tsx(new): Example rendering all 11 asset type iconsstories/AssetIcon.stories.tsx(new): Storybook stories (Basicwith controls,Overviewshowing all types) underComponents/Asset/AssetIconAssetIcon.tsx: SimplifyAssetIconProps— removeOmit<GeneratedIconProps, 'illustration' | 'ref'>since neitherillustrationnorrefexist onGeneratedIconProps; extend it directly instead✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.