@glrodasz/components
v2.14.0
Published
A components library to create apps from zero to production
Readme
Cero a Producción — Components
0️⃣ 🚀 Cero a Producción is a series of live coding sessions where we build RETO, a productivity app, from scratch to production — real decisions, failing tests, refactors and all.
📺 YouTube · 🟣 Twitch (live in 🇪🇸 Spanish, Tuesdays to Fridays)
Part of the Cero a Producción project.
What this is
@glrodasz/components is the UI kit built for RETO, following Atomic
Design. It is published to npm and consumed by
cero-web.
Getting Started
reactandreact-domare peer dependencies and must be installed in your project.
1. Installation
yarn add @glrodasz/components2. Using the library
import { Icon, ButtonIcon } from '@glrodasz/components'
<ButtonIcon icon="arrowRight" type="primary">
Cowards Agreed
</ButtonIcon>Browse every available component in the Storybook.
Running the project locally
- Clone the repository:
git clone https://github.com/glrodasz/cero-components.git - Install dependencies in the project folder:
yarn - Run
yarn dev— builds the design tokens and starts Storybook athttp://localhost:6006.
Running the tests
yarn test— unit and snapshot tests.yarn test:watch— same, in watch mode.
Methodologies
Atomic Design
Components follow Atomic Design. This library only builds Atoms and Molecules:
- Atom — a component composed of a single atom with or without HTML tags, or just HTML tags.
- Molecule — a component composed of at least 2 different atoms.
