diff --git a/src/components/commons/CpButton.stories copy.ts b/src/components/commons/CpButton.stories copy.ts new file mode 100644 index 0000000..c5a9d76 --- /dev/null +++ b/src/components/commons/CpButton.stories copy.ts @@ -0,0 +1,42 @@ +import type { Meta, StoryObj } from "@storybook/vue3"; +import CpButton from "./CpButton.vue"; + +const meta: Meta = { + title: "CpButton", + component: CpButton, +}; + +//👇 This default export determines where your story goes in the story list +export default meta; +// type Story = StoryObj; + +/* + *👇 Render functions are a framework specific feature to allow you control on how the component renders. + * See https://storybook.js.org/docs/api/csf + * to learn how to use render functions. + */ +export const Solid: StoryObj<{ type: string }> = { + render: (args) => ({ + components: { CpButton }, + setup() { + return { args }; + }, + template: 'Solid', + }), + args: { + type: "solid", + }, +}; + +export const Outlined: StoryObj<{ type: string }> = { + render: (args) => ({ + components: { CpButton }, + setup() { + return { args }; + }, + template: 'Outlined', + }), + args: { + type: "outlined", + }, +}; diff --git a/src/components/commons/CpIconCircleButton.vue b/src/components/commons/CpIconCircleButton.vue index d8fc2e9..c92c0bf 100644 --- a/src/components/commons/CpIconCircleButton.vue +++ b/src/components/commons/CpIconCircleButton.vue @@ -3,6 +3,7 @@ 정은우 -->