diff --git a/README.md b/README.md index b70f06081..0161f0879 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,13 @@ package | source [@cockroachlabs/design-tokens](https://www.npmjs.com/package/@cockroachlabs/design-tokens) | [`/packages/design-tokens`](https://github.com/cockroachdb/ui/tree/master/packages/design-tokens) [@cockroachlabs/icons](https://www.npmjs.com/package/@cockroachlabs/icons) | [`/packages/icons`](https://github.com/cockroachdb/ui/tree/master/packages/icons) [@cockroachlabs/ui-components](https://www.npmjs.com/package/@cockroachlabs/ui-components) | [`/packages/ui-components`](https://github.com/cockroachdb/ui/tree/master/packages/ui-components) + +## storybook-ui-components +To run storybook locally, it's required to build all dependent packages and then run Storybook itself: +``` +pnpm install # install dependencies +pnpm build # run `build` scrips for all workspaces +pnpm --dir packages/storybook-ui-components start # run storybooks +# -or- +pnpm --dir packages/storybook-ui-components build-storybook # build a static version of storybooks +``` \ No newline at end of file diff --git a/packages/storybook-ui-components/.storybook/preview.ts b/packages/storybook-ui-components/.storybook/preview.ts index 969e22a70..2855a419a 100644 --- a/packages/storybook-ui-components/.storybook/preview.ts +++ b/packages/storybook-ui-components/.storybook/preview.ts @@ -1,5 +1,5 @@ // .storybook/preview.ts -import "@cockroachlabs/ui-components/dist/main.css" +import "@cockroachlabs/ui-components/dist/cjs/index.css" const preview = { parameters: {}, diff --git a/packages/storybook-ui-components/stories/ExpandableText.stories.tsx b/packages/storybook-ui-components/stories/ExpandableText.stories.tsx index 409831e25..be06f1b25 100644 --- a/packages/storybook-ui-components/stories/ExpandableText.stories.tsx +++ b/packages/storybook-ui-components/stories/ExpandableText.stories.tsx @@ -12,7 +12,7 @@ export default { export const Default = () => (