Skip to content

Commit 992c3cd

Browse files
committed
TreatmentConsultant - Add Storybook story
1 parent 4941bc9 commit 992c3cd

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import type { Meta, StoryObj } from "@nuxtjs/storybook";
2+
import TreatmentConsultant from "../TreatmentConsultant.vue";
3+
4+
const meta: Meta<typeof TreatmentConsultant> = {
5+
title: "Organisms/TreatmentConsultant",
6+
component: TreatmentConsultant,
7+
argTypes: {
8+
autoAdvance: {
9+
control: "boolean",
10+
description: "Automatically advance to the next step after selection",
11+
},
12+
},
13+
};
14+
15+
export default meta;
16+
type Story = StoryObj<typeof TreatmentConsultant>;
17+
18+
// ─── Stories ─────────────────────────────────────────────────────────────────
19+
20+
export const Default: Story = {
21+
args: {
22+
autoAdvance: true,
23+
},
24+
render: (args) => ({
25+
components: { TreatmentConsultant },
26+
setup() {
27+
return { args };
28+
},
29+
template: `
30+
<TreatmentConsultant v-bind="args" />
31+
`,
32+
}),
33+
};

0 commit comments

Comments
 (0)