Skip to content

florencia-espeche/react-atomic-design

Repository files navigation

React Atomic Design Component Library

This repo aims to be used as a Design System

Storybook

Publish is WIP

Figma references

Publish is WIP

Core Technologies

How to use this repository

If you don't have yarn installed

    npm install -g yarn

Install all dependencies

    yarn

Executes the storybook in http://localhost:6006/

    yarn storybook

Update snapshots

    yarn test -u

Execute tests

    yarn test

Execute test by name

    yarn test -- 'Button'

Component's structure

Every component has the same structure

  • Button/__test__ A folder to keep all tests of the component

  • Button/__test__/__snapshots__ Where are generated all snapshots of this component

  • Button/__test__/Button.test.tsx Where we craft all the tests of this component

  • Button/Button.tsx Where we craft the component

  • Button/Button.style.ts Where we craft the styled components to use in Button.tsx

  • Button/Button.stories.tsx Where we craft all types used in Button.tsx

Atomic design structure

The component archicture is set up following the atomic design methodology.

Atomic Design