Open BoppLi opened 1 month ago
In cases that need functions in storybook examples, we should create a demo component file and reference the code like here: packages/sit-onyx/src/components/examples/FormExample/FormExample.stories.ts
packages/sit-onyx/src/components/examples/FormExample/FormExample.stories.ts
import FormExampleSourceCode from "./FormExample.vue?raw"; // ... const meta: Meta<typeof FormExample> = { // ... parameters: { docs: { source: { code: FormExampleSourceCode.replace('from "../../.."', 'from "sit-onyx"'), }, }, }, };
Full example context
In cases that need functions in storybook examples, we should create a demo component file and reference the code like here:
packages/sit-onyx/src/components/examples/FormExample/FormExample.stories.ts
List of examples we should change:
Acceptance criteria