1.0.5 • Published 4 years ago

@caprica-six/custom-button v1.0.5

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

How to register a simple React component with Storybook and npm

Install

npm i '@caprica-six/custom-button'

yarn add '@caprica-six/custom-button'

Usage

import { CustomButton } from '@caprica-six/custom-button'

const MyComponent = () => {
    return (
        <CustomButton>Default</CustomButton>
    )
}

Available Scripts

yarn start

yarn run storybook

Run Storybook

yarn run deploy-storybook -- --out=.out

Deploy storybook to github pages with storybook-deployer If you need to configure the output directory you can supply the out flag.

Publish npm package:

  1. Update package version in package.json or npm version 1.0.0
  2. yarn build

  3. yarn publish --access=public

Keywords

React Storybook