carbon-design-system / carbon-website-archive

The old website for the Carbon Design System. This repo is archived.
https://www.carbondesignsystem.com
238 stars 115 forks source link

Add React component examples for Dropdown to website #803

Closed alisonjoseph closed 5 years ago

alisonjoseph commented 5 years ago

Add React examples to website for Dropdown. (see current site for examples https://www.carbondesignsystem.com/components/dropdown/code) Could use codesandbox plugin for this.

joshblack commented 5 years ago
joshblack commented 5 years ago

cc @mattrosno any tips for using these in Gatsby with the codesandbox plugin?

alisonjoseph commented 5 years ago

@mattrosno can you sync up with Josh so we can get these added this week 🙏

mattrosno commented 5 years ago

@alisonjoseph @joshblack just seeing this. I'll submit a PR to get working codesandboxes in there, separate from tutorial PR.

Not sure how good the embedded codesandboxes would look in there... sure we don't want to simply link out to React Storybook like how it's handled in v9 components?

alisonjoseph commented 5 years ago

v9 has those components directly on the page, I suppose we could do the same, just might be a little more work to get them in there

alisonjoseph commented 5 years ago

Oh, for examples above, should we switch to experimental v10 versions for the next site?

asudoh commented 5 years ago

@alisonjoseph Good point - Created #1057 for that.

asudoh commented 5 years ago

Oh sorry NVM I had a wrong assumption that we put the React components directly to <ComponentExample>.

asudoh commented 5 years ago

Created experimental styled version at: #1058

asudoh commented 5 years ago

Created #1059 just in case more direct live demo (like vanilla ones) is more desirable.