@dan-akl/patterns

1.2.1 • Public • Published

A bunch of React Components

Including in your project

yarn add @dan-akl/patterns
@import { Button } from '@dan-akl/patterns'

Running Storybook

yarn storybook

Adding new Components

Add new components by using the component:generate npm task. It will prompt you for a name for the Component. Please follow the Standard ReactNamingConventions, and name the component the singular form.

Good: TextInput Button CheckBox

Bad: textInput text-input text input Buttons

A new directory will be created in the ./src/components directory with the following files:

.
├── src
|   ├── Component
|   |   ├── Component.jsx
|   |   ├── Component.scss
|   |   ├── Component.story.js
|   |   ├── Component.test.js
|   |   ├── README.md
|   |   ├── index.js

Readme

Keywords

none

Package Sidebar

Install

npm i @dan-akl/patterns

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

6.15 MB

Total Files

653

Last publish

Collaborators

  • catojohnston