From 3a43219140b24dde43b228167b919e86104d3992 Mon Sep 17 00:00:00 2001 From: Daichi Hashimura Date: Fri, 8 Nov 2024 15:30:41 +0900 Subject: [PATCH 1/7] =?UTF-8?q?fix:=20=E6=9C=80=E5=A4=A7=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=95=B0=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=81=AE?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E3=81=A8=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=BC?= =?UTF-8?q?=E3=83=B3=E3=83=AA=E3=83=BC=E3=83=80=E3=83=BC=E3=81=A7=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E3=81=99=E3=82=8B=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Textarea/Textarea.stories.tsx | 121 ++++++++++++++++++ .../src/components/Textarea/Textarea.tsx | 90 ++++++++++--- 2 files changed, 194 insertions(+), 17 deletions(-) create mode 100644 packages/smarthr-ui/src/components/Textarea/Textarea.stories.tsx diff --git a/packages/smarthr-ui/src/components/Textarea/Textarea.stories.tsx b/packages/smarthr-ui/src/components/Textarea/Textarea.stories.tsx new file mode 100644 index 0000000000..d9612b4c2e --- /dev/null +++ b/packages/smarthr-ui/src/components/Textarea/Textarea.stories.tsx @@ -0,0 +1,121 @@ +import { StoryFn } from '@storybook/react' +import { userEvent, within } from '@storybook/test' +import React, { useState } from 'react' +import styled from 'styled-components' + +import { FormControl } from '../FormControl' +import { Stack } from '../Layout' + +import { Textarea } from './Textarea' + +export default { + title: 'Forms(フォーム)/Textarea', + component: Textarea, +} + +const defaultValue = 'message👌' + +const Template: StoryFn = () => { + const [value1, setValue1] = useState(defaultValue) + const [value2, setValue2] = useState(defaultValue) + const [value3, setValue3] = useState(defaultValue) + return ( + +
  • + +