import type { Meta, StoryObj } from "@storybook/react";
import { Textarea } from "~/components/ui/textarea";
function Field({
label,
hint,
error,
htmlFor,
children,
}: {
label: string;
hint?: string;
error?: string;
htmlFor: string;
children: React.ReactNode;
}) {
return (
);
}
const meta: Meta = {
title: "UI / Inputs / Textarea",
component: Textarea,
tags: ["autodocs"],
argTypes: {
disabled: { control: "boolean" },
},
args: { placeholder: "Tell us what happened…", rows: 4 },
};
export default meta;
type Story = StoryObj;
export const Default: Story = {
render: (args) => (
),
};
export const WithCharacterHint: Story = {
render: (args) => (
),
};
export const WithError: Story = {
render: (args) => (
),
};
export const Disabled: Story = {
args: { disabled: true, defaultValue: "Submission already locked — read-only." },
render: (args) => (
),
};