Skip to content

Commit eab2d02

Browse files
committed
docs(Playground): add autocompletion
1 parent 3f961e5 commit eab2d02

File tree

2 files changed

+28503
-1
lines changed

2 files changed

+28503
-1
lines changed

packages/core/.storybook/preview.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ import withGlobalStyle from "../src/storybook/decorators/withGlobalStyle/withGlo
3333
import { ComponentNameDecorator, PropsTable, RelatedComponentsDecorator } from "../src/storybook";
3434
import "monday-ui-style/dist/index.min.css";
3535
import "vibe-storybook-components/dist/index.css";
36+
import { generateAutocompletion } from "storybook-addon-playground";
3637
import introCode from "../src/storybook/stand-alone-documentaion/playground/playground-helpers";
38+
import reactDocgenOutput from "../src/storybook/stand-alone-documentaion/playground/react-docgen-output.json";
3739
import withLiveEdit from "../src/storybook/decorators/withLiveEdit/withLiveEdit";
3840

3941
const fontLoader = async () => ({
@@ -111,7 +113,8 @@ const preview: Preview = {
111113
playground: {
112114
storyId: "playground",
113115
components: { ...VibeComponents, VibeIcons, VibeNext: VibeComponentsNext },
114-
introCode
116+
introCode,
117+
autocompletions: generateAutocompletion(reactDocgenOutput)
115118
}
116119
},
117120
decorators: [

0 commit comments

Comments
 (0)