Skip to content

Commit

Permalink
add new stories for TextArea
Browse files Browse the repository at this point in the history
  • Loading branch information
mkernohanbc committed Jul 10, 2024
1 parent b0623ff commit 3bf8dc9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/react-components/src/stories/TextArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,28 @@ export const TextAreaError: Story = {
errorMessage: "Error message",
},
};

export const TextAreaWithMaxLength: Story = {
args: {
label: "Label",
description: "This text area has a maximum length, and displays a counter.",
maxLength: 500,
},
};

export const DisabledTextArea: Story = {
args: {
label: "Label",
description: "This text area is disabled",
isDisabled: true,
},
};

export const ReadOnlyTextArea: Story = {
args: {
label: "Label",
value: "This text area is set to read-only.",
description: "It is focusable, and the value can be copied but not edited.",
isReadOnly: true,
},
};

0 comments on commit 3bf8dc9

Please sign in to comment.