0.0.12 • Published 5 years ago

@fjordline/ui v0.0.12

Weekly downloads
11
License
-
Repository
-
Last release
5 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

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago