Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (13 loc) · 939 Bytes

documentation.md

File metadata and controls

25 lines (13 loc) · 939 Bytes

Adding documentation

In this guide, we'll walk through adding documentation for our fully test custom Strong component.

We mainly document 2 things for each component, its purpose and its interface.

Component purpose

A component's description and any notes worth mentioning (limitations, features, etc).

This is written in the stories mdx file.

See writing stories

Component interface

AKA props documentation, we use defaultProps and propTypes to document the component interface, this information is included directly in the component jsx file.

This documentation is automatically turned into a table inside storybook.

See writing components

Next

Let's submit our component for review!