yarn add snapkit@git+ssh://[email protected]:KeystoneHQ/snapkit#[tagName]
example:
yarn add snapkit@git+ssh://[email protected]:KeystoneHQ/snapkit#v0.1.5
import 'snapkit/dist/style.css'
import { Tabs, Tab } from 'snapkit'
There is no document open to the public, you need to use storybook to build it yourself.
yarn install
yarn run dev
yarn run build
yarn run build:storybook
npm i yalc -g
publish snapkit package
Execute in the project directory:
npm run publish:local
yalc add snapkit --link
npm run publish:local
changed package.json version
tip: only master branch publish:git
npm run publish:git
- The storybook file is named as "xxx.stories.tsx";
- The css module is named as "xxx.module.scss";