diff --git a/src/components/common/standardButton/StandardButton.stories.tsx b/src/components/common/standardButton/StandardButton.stories.tsx new file mode 100644 index 0000000..33d912b --- /dev/null +++ b/src/components/common/standardButton/StandardButton.stories.tsx @@ -0,0 +1,29 @@ +import type { Meta, StoryObj } from '@storybook/react' +import StandardButton from './StandardButton' + +const meta: Meta = { + component: StandardButton, + tags: ['autodocs'], + title: 'components/StandardButton', + argTypes: { + label: { + control: 'text' + }, + state: { + control: 'select', + options: ['disabled', 'enabled'] + }, + style: { + control: 'select', + options: ['outlined', 'filled'] + } + } +} +export default meta +type Story = StoryObj + +export const Default: Story = { + render: (args) => ( + + ) +} diff --git a/src/components/common/standardButton/StandardButton.tsx b/src/components/common/standardButton/StandardButton.tsx new file mode 100644 index 0000000..641b64a --- /dev/null +++ b/src/components/common/standardButton/StandardButton.tsx @@ -0,0 +1,25 @@ +interface StandardButtonProps { + label: string + state: 'disabled' | 'enabled' + style: 'outlined' | 'filled' +} +const StandardButton = ({ label, state, style }: StandardButtonProps) => { + return ( +
+ {label} +
+ ) +} + +export default StandardButton