From c9dd49517076792f54f99c0f210204d73933587d Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Sat, 16 Oct 2021 00:47:05 +0900 Subject: [PATCH] Update contributor docs --- packages/components/CONTRIBUTING.md | 48 +++++++++++++++++++---------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/packages/components/CONTRIBUTING.md b/packages/components/CONTRIBUTING.md index 088f56f43d6bb..8dab3b4d50f9b 100644 --- a/packages/components/CONTRIBUTING.md +++ b/packages/components/CONTRIBUTING.md @@ -8,17 +8,21 @@ This set of guidelines should apply especially to newly introduced components. I For an example of a component that follows these requirements, take a look at [`ItemGroup`](/packages/components/src/item-group). -- [Compatibility](#compatibility) -- [Compound components](#compound-components) -- [Components & Hooks](#components--hooks) -- [TypeScript](#typescript) -- [Styling](#styling) -- [Context system](#context-system) -- [Unit tests](#unit-tests) -- [Storybook](#storybook) -- [Documentation](#documentation) -- [README example](#README-example) -- [Folder structure](#folder-structure) +- [Contributing](#contributing) + - [Compatibility](#compatibility) + - [Compound components](#compound-components) + - [Components & Hooks](#components--hooks) + - [TypeScript](#typescript) + - [Styling](#styling) + - [Context system](#context-system) + - [Unit tests](#unit-tests) + - [Storybook](#storybook) + - [Documentation](#documentation) + - [README example](#readme-example) + - [Props](#props) + - [`propName`: Typescript style type i.e `string`, `number`, `( nextValue: string ) => void`](#propname-typescript-style-type-ie-string-number--nextvalue-string---void) + - [Inherited props](#inherited-props) + - [Context](#context) ## Compatibility @@ -277,14 +281,24 @@ import Button from '../'; export default { title: 'Components/Button', component: Button }; -export const _default = () => ; - -export const primary = () => ; - -export const secondary = () => ; +const Template = ( args ) =>