aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/src/stories/textarea.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'uidev/src/stories/textarea.stories.tsx')
-rw-r--r--uidev/src/stories/textarea.stories.tsx30
1 files changed, 0 insertions, 30 deletions
diff --git a/uidev/src/stories/textarea.stories.tsx b/uidev/src/stories/textarea.stories.tsx
deleted file mode 100644
index 5c2b61798..000000000
--- a/uidev/src/stories/textarea.stories.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
1import * as React from 'react';
2import { v4 as uuid } from 'uuid';
3
4import { Textarea } from '@meetfranz/forms';
5import { storiesOf } from '../stores/stories';
6
7const defaultProps = () => {
8 const id = uuid();
9 return {
10 label: 'Label',
11 id: `test-${id}`,
12 name: `test-${id}`,
13 rows: 5,
14 onChange: (e: React.ChangeEvent<HTMLInputElement>) =>
15 console.log('changed event', e),
16 };
17};
18
19storiesOf('Textarea')
20 .add('Basic', () => (
21 <Textarea
22 {...defaultProps()}
23 // placeholder="Placeholder text"
24 />
25 ))
26 .add('10 rows', () => <Textarea {...defaultProps()} rows={10} />)
27 .add('With error', () => (
28 <Textarea {...defaultProps()} error="This is a generic error message." />
29 ))
30 .add('Disabled', () => <Textarea {...defaultProps()} rows={2} disabled />);