-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.stories.tsx
35 lines (31 loc) · 1.06 KB
/
forms.stories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint-disable import/no-anonymous-default-export */
import { FormInputGroup } from "../components/shared";
export default {
title: "forms",
};
export const TextInputGroupWithPlaceholderStory = () => (
<FormInputGroup
id="text-input-placeholder"
type="text"
placeholder="placeholder"
/>
);
TextInputGroupWithPlaceholderStory.storyName =
"text input group with placeholder";
TextInputGroupWithPlaceholderStory.parameters = {
controls: { hideNoControlsWarning: true },
};
export const TextInputGroupWithLabelStory = () => (
<FormInputGroup id="text-input-with-label" type="text" label="Label" />
);
TextInputGroupWithLabelStory.storyName = "text input group with label";
TextInputGroupWithLabelStory.parameters = {
controls: { hideNoControlsWarning: true },
};
export const DateInputGroupWithLabelStory = () => (
<FormInputGroup id="date-input-with-label" type="date" label="Label" />
);
DateInputGroupWithLabelStory.storyName = "date input group with label";
DateInputGroupWithLabelStory.parameters = {
controls: { hideNoControlsWarning: true },
};