diff --git a/.storybook/preview.js b/.storybook/preview.js index 0dfac9a..9ce4c16 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -46,6 +46,7 @@ export const parameters = { 'Image', 'Input', 'Text', + 'TextArea', 'Toast', 'Switch', 'Modal', diff --git a/.storybook/storybook.requires.js b/.storybook/storybook.requires.js index 7aef130..4d52004 100644 --- a/.storybook/storybook.requires.js +++ b/.storybook/storybook.requires.js @@ -35,6 +35,7 @@ const getStories = () => { require('../src/components/Input/Input.stories.tsx'), require('../src/components/Switch/Switch.stories.tsx'), require('../src/components/Text/Text.stories.tsx'), + require('../src/components/TextArea/TextArea.stories.tsx'), require('../src/components/TextLink/TextLink.stories.tsx'), require('../src/components/Toast/Toast.stories.tsx'), require('../src/components/Spinner/Spinner.stories.tsx'), diff --git a/docs/stories/assets/textarea/TextAreaCases.png b/docs/stories/assets/textarea/TextAreaCases.png new file mode 100644 index 0000000..0b4d5b4 Binary files /dev/null and b/docs/stories/assets/textarea/TextAreaCases.png differ diff --git a/docs/stories/assets/textarea/TextAreaSizes.png b/docs/stories/assets/textarea/TextAreaSizes.png new file mode 100644 index 0000000..1d2520a Binary files /dev/null and b/docs/stories/assets/textarea/TextAreaSizes.png differ diff --git a/docs/stories/assets/textarea/TextAreaTypes.png b/docs/stories/assets/textarea/TextAreaTypes.png new file mode 100644 index 0000000..793fb89 Binary files /dev/null and b/docs/stories/assets/textarea/TextAreaTypes.png differ diff --git a/docs/stories/components/textarea.stories.mdx b/docs/stories/components/textarea.stories.mdx new file mode 100644 index 0000000..03657c4 --- /dev/null +++ b/docs/stories/components/textarea.stories.mdx @@ -0,0 +1,100 @@ +import { Meta } from '@storybook/addon-docs'; +import TextAreaSizes from '../assets/textarea/TextAreaSizes.png'; +import TextAreaTypes from '../assets/textarea/TextAreaTypes.png'; +import TextAreaCases from '../assets/textarea/TextAreaCases.png'; + + + +# TextArea + +Text areas let users enter and edit text. + +
+ TextAreaSizes + TextAreaTypes + TextAreaCases +
+ +
+
+ +## Usage + +```jsx +