To setup linking for local development in Storybook for packages like Core, Staking or any other package, you need to link UI Toolkit with it on a package level. To achieve this follow steps listed below.
[!IMPORTANT] > yalc is a prerequisite for this setup to work. Install it using
yarn global add yalc
-
Clone code repository
git clone [email protected]:input-output-hk/lace-ui-toolkit.git
-
Follow steps described in UI Toolkit's README.md
-
Go to package directory ex.
packages/core
and setup linkingyalc link @input-output-hk/lace-ui-toolkit
-
Start dev mode (Storybook)
yarn dev
-
Once development done remove linking
yalc remove @input-output-hk/lace-ui-toolkit