import { textAreaPropDefs } from "@radix-ui/themes/props" import type { Meta, StoryObj } from "@storybook/react" import { TextArea } from "./TextArea" const meta = { title: "base/form/TextArea", component: TextArea, tags: ["autodocs"], argTypes: { placeholder: { control: "text", description: "Placeholder text for the textarea", }, disabled: { control: "boolean", description: "Whether the textarea is disabled", }, readOnly: { control: "boolean", description: "Whether the textarea is read-only", }, required: { control: "boolean", description: "Whether the textarea is required", }, size: { control: "select", options: textAreaPropDefs.size.values, description: "Size of the textarea", }, color: { control: "select", options: textAreaPropDefs.color.values, description: "Color theme of the textarea", }, variant: { control: "select", options: textAreaPropDefs.variant.values, description: "Visual style variant", }, }, parameters: { layout: "centered", }, } satisfies Meta export default meta type Story = StoryObj /** * Basic textarea with placeholder. */ export const Default: Story = { args: { placeholder: "Enter your message here...", }, } /** * Different sizes of textarea. */ export const Sizes: Story = { render: () => (