|
1
|
import type { Meta, StoryObj } from "@storybook/react" |
|
2
|
import * as React from "react" |
|
3
|
|
|
4
|
import { Textarea } from "./textarea" |
|
5
|
|
|
6
|
const meta: Meta<typeof Textarea> = { |
|
7
|
title: "Components/Textarea", |
|
8
|
component: Textarea, |
|
9
|
parameters: { |
|
10
|
layout: "centered", |
|
11
|
}, |
|
12
|
render: (args) => ( |
|
13
|
<div className="w-[400px]"> |
|
14
|
<Textarea {...args} /> |
|
15
|
</div> |
|
16
|
), |
|
17
|
} |
|
18
|
|
|
19
|
export default meta |
|
20
|
|
|
21
|
type Story = StoryObj<typeof Textarea> |
|
22
|
|
|
23
|
export const Default: Story = { |
|
24
|
args: { |
|
25
|
placeholder: "Placeholder", |
|
26
|
}, |
|
27
|
} |