Draw the rest of the UI library
This commit is contained in:
22
src/stories/TextArea.stories.tsx
Normal file
22
src/stories/TextArea.stories.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from "react";
|
||||
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
||||
|
||||
import { TextAreaProps } from "./TextArea";
|
||||
|
||||
import TextArea from "./TextArea";
|
||||
|
||||
export default {
|
||||
title: "TextAreas/TextArea",
|
||||
component: TextArea,
|
||||
argTypes: {},
|
||||
} as ComponentMeta<typeof TextArea>;
|
||||
|
||||
const Template: ComponentStory<typeof TextArea> = (args: TextAreaProps) => (
|
||||
<TextArea {...args} />
|
||||
);
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {
|
||||
id: "testId",
|
||||
placeholder: "Tell me your secrets",
|
||||
};
|
Reference in New Issue
Block a user