There's probably room for improvement, but my current structure is something like this:
- Component name, with visual, and concise description which could be reused throughout design systems, so it should be on point!
- Functionality (describe how the component should behave)
- Best practices (cover pitfalls, intricacies or any other non-obvious things to keep in mind)
- Implementation (a bit more technical than the previous chapters, possibly get into framework-specific nuances, etc)
- Examples (render a few well-implemented examples of the component from various frameworks)
- Accessibility (basically links to WAI-ARIA docs for the component; it's probably redundant to duplicate the same info here)
- Resources (any resources used to put the play together)
I'm very open to suggestions and feedback on this!
There's probably room for improvement, but my current structure is something like this:
I'm very open to suggestions and feedback on this!