0.0.12 • Published 4 years ago

@fjordline/ui v0.0.12

Weekly downloads
11
License
-
Repository
-
Last release
4 years ago

Fjordline

Creating new reusable components

To add a new component you have to add a folder and two files:

  • src/components/Component
    • index.tsx
    • index.stories.tsx

In order for the component to show in storybook you have to add the following line to src/index.ts

export { default as [Component] } from './components/[Component]'

For your convenience there is a script that does this for you.

yarn new [Component]

The script can also be used to make several components at once:

yarn new Checkbox Toggle Modal
0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago