-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(Combobox): update dev docs; add mdx docs #6734
docs(Combobox): update dev docs; add mdx docs #6734
Conversation
Deploy preview for carbon-elements ready! Built with commit aae5638 |
Deploy preview for carbon-components-react ready! Built with commit aae5638 https://deploy-preview-6734--carbon-components-react.netlify.app |
Deploy preview for carbon-elements ready! Built with commit 877aeff |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 877aeff https://deploy-preview-6734--carbon-components-react.netlify.app |
- [Component API](#component-api) | ||
- [Feedback](#feedback) | ||
|
||
## Overview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be able to use the same strategy as TJ did over in Dropdown for use-cases / component API: https://github.com/carbon-design-system/carbon/blob/master/packages/react/src/components/Dropdown/Dropdown.mdx
Some other examples could be:
- Skeleton
- Controlled vs uncontrolled
- Invalid states
- Label guidance (how to label it so that it's accessible)
bump @dakahn let me know when a good time to re-review is for this! 👀 |
@joshblack I added some more detail on some pitfall props (a couple you mentioned). Didn't see a skeleton for this component though, but I could just be being daft |
Do we think it would be helpful to add guidance on how to use some of the other more complex props like If we don't want to duplicate documentation for props like |
I think it's more of along the lines (for me) that it doesn't take much effort to add in that extra value for someone that may need it but will exponentially reduce any question we get asked about that prop in the future. We seem to get a lot of questions from newer React developers, so I don't think it hurts to be too explicit. I would just like to err on the side of "too much documentation" rather than having to go back and add more in later, which inevitably won't happen. |
I'm fine either way 👍 |
bump @dakahn do you have a preference? |
I'll throw a few more examples in like what i see in TJ's pr and we can call it good |
For more information, checkout the Downshift prop | ||
[documentation](https://www.downshift-js.com/downshift#props-used-in-examples) | ||
|
||
## Placeholders and Labeling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Placeholders and Labeling | |
## Placeholders and labeling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
## Table of Contents | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
- [Overview](#overview) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it help to add the new sections to the TOC too or nah?
bump @tw15egan if you have a sec today/next week |
oh yeah lemme do that right quick @joshblack |
Can we just bump the prop table a bit further up the page? The rest looks good to me 👍 |
e5aeb3d
to
92192f0
Compare
Closes #6629
Updates the dev docs using our new template. Adds MDX file and relevant stories.
Getting it up here so we can start hashing out what this should look like
Testing/reviewing
Make sure all functionality we want to demonstrate is accounted for and working correctly 👍