Skip to content

Commit

Permalink
[DOCS] fix: add error case
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 17, 2024
1 parent 4193f5b commit a086a9e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
16 changes: 15 additions & 1 deletion apps/docs/src/stories/TextArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const FixedHeight: StoryObj<TextAreaProps> = {
labelText: 'Label',
descriptionText: 'Description',
placeholder: 'Placeholder...',
value: 'text\ntext\ntest',
value: 'text\ntext\ntext',
maxLength: 300,
isError: false,
errorMessage: 'error message',
Expand Down Expand Up @@ -155,4 +155,18 @@ export const Disabled: StoryObj<TextAreaProps> = {
readOnly: false,
disabled: true,
}
};

export const Error: StoryObj<TextAreaProps> = {
args: {
labelText: 'Label',
descriptionText: 'Description',
placeholder: 'Placeholder...',
maxLength: 300,
isError: true,
errorMessage: 'error message',
required: true,
readOnly: false,
disabled: false,
}
};
13 changes: 13 additions & 0 deletions apps/docs/src/stories/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,17 @@ export const Disabled: StoryObj<TextFieldProps> = {
readOnly: false,
disabled: true,
},
};

export const Error: StoryObj<TextFieldProps> = {
args: {
labelText: 'Label',
descriptionText: 'Description',
placeholder: 'Placeholder...',
isError: true,
errorMessage: 'error message',
required: true,
readOnly: false,
disabled: false,
},
};

0 comments on commit a086a9e

Please sign in to comment.