diff --git a/src/components/input/Input.stories.ts b/src/components/input/Input.stories.ts index 132a91d..5610f7e 100644 --- a/src/components/input/Input.stories.ts +++ b/src/components/input/Input.stories.ts @@ -40,7 +40,7 @@ export const Secondary: Story = { export const Large: Story = { args: { size: 'large', - label: 'Button', + label: 'Large input label', placeholder: 'placeholder', id: 'button-label', }, @@ -49,7 +49,7 @@ export const Large: Story = { export const Medium: Story = { args: { size: 'medium', - label: 'Delete now', + label: 'Medium input label', id: 'button-label', placeholder: 'placeholder', }, diff --git a/src/components/input/Input.tsx b/src/components/input/Input.tsx index ee9af87..b3227e5 100644 --- a/src/components/input/Input.tsx +++ b/src/components/input/Input.tsx @@ -4,7 +4,7 @@ import classes from './input.module.scss'; interface InputProps { type?: HTMLInputTypeAttribute; minLength?: number; - label?: string; + label: string; id?: string; autoFocus?: boolean; placeholder?: string; @@ -23,7 +23,7 @@ export const Input = ({ }: InputProps) => ( <>