From 2e37e90cc8a9eef7a4eb08a38aa151565925f641 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 29 Oct 2022 18:21:18 +0800 Subject: [PATCH] [ui][textarea] add description prop --- apps/storybook/stories/text-area.stories.tsx | 17 +++++++++++++++++ packages/ui/src/TextArea/TextArea.tsx | 19 ++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/apps/storybook/stories/text-area.stories.tsx b/apps/storybook/stories/text-area.stories.tsx index 304d267f..0ddd2ddb 100644 --- a/apps/storybook/stories/text-area.stories.tsx +++ b/apps/storybook/stories/text-area.stories.tsx @@ -15,6 +15,9 @@ export default { autoComplete: { control: 'text', }, + description: { + control: 'text', + }, disabled: { control: 'boolean', }, @@ -108,6 +111,20 @@ export function Error() { ); } +export function Description() { + const [value, setValue] = useState('Some comment'); + + return ( +