import type { PropsFor } from "../../types.js"; export type TextAreaState = TextAreaProps["state"]; export type TextAreaProps = PropsFor<"textarea", { /** Required label text */ label: React.ReactNode; /** Available states: `default`, `warning`, and `alert` */ state?: "default" | "warning" | "alert"; /** Feedback text below the textarea */ feedback?: React.ReactNode; /** Bool to hide label */ hideLabel?: boolean; /** Description text to show more information */ description?: React.ReactNode; /** Bool to mark textarea required, but hides the required label */ requiredNoLabel?: boolean; /** Marks textarea as optional */ optional?: boolean; /** CSS class name(s) for the internal `