It's a React-based storybook. Deployed on npm, you can easily use the component. You can infer component properties through TypeScript. You can check the component UI through Storybook. https://imki123.github.io/go-storybook
npm i -g yarn
yarn add go-storybook
import { Button } from 'go-storybook'
<Button>Click Me</Button>
export const Component = () => {
const { openSnackBar } = useSnackBar({ text: 'My snackbar!!' })
return (
<>
<Button onClick={openSnackBar}>Open SnackBar</Button>
<SnackBar text='' />
</>
)
}
yarn
If you have ts errors in IDE, check below yarn docs.
https://yarnpkg.com/getting-started/editor-sdks
yarn sb
npm version patch
yarn build-npm
npm publish
git push && yarn deploy