Files
Shortumation/webapp/src/components/Inputs/InputTextArea.stories.tsx
T
2022-01-14 11:31:55 -05:00

25 lines
629 B
TypeScript

import { ComponentMeta, ComponentStory } from "@storybook/react";
import { useState } from "react";
import InputTextArea from "./InputTextArea";
export default {
title: 'Inputs/InputTextArea',
component: InputTextArea,
parameters: { actions: { argTypesRegex: '^on.*' } },
} as ComponentMeta<typeof InputTextArea>;
const Template: ComponentStory<typeof InputTextArea> = args => {
const [value, setValue] = useState('')
return <div className="page">
<InputTextArea {...args} value={value} onChange={setValue} />
</div>
}
export const SimpleText = Template.bind({})
SimpleText.args = {
label: "Entity ID",
}