"use client"; import type * as React from "react"; import { cn } from "./cn"; /* * No Base UI primitive: a textarea has no behaviour a library needs to manage, * only the same surface an Input has. So this deliberately reuses the Input * contract — `--input-radius`, `--input-background`, `--input-padding-x-md`, * `--input-disabled-background` — rather than growing a `--textarea-*` set. * * That is not a shortcut. Both products already draw the two the same way and * differ from each other in exactly the three places those tokens cover: * Enterprise is `rounded-md` with a filled background, NOKL is `rounded-lg` and * transparent, and their horizontal padding differs by 2px. A field and a * multi-line field that disagreed on radius within one product would be the * bug, not the feature. * * Height is where it stops borrowing. Input has fixed step heights; a textarea * grows, so it takes a minimum and `field-sizing-content`, which lets the * browser size it to what has been typed. Both products already ship that. */ export interface TextareaProps extends React.ComponentProps<"textarea"> {} function Textarea({ className, ...props }: TextareaProps) { return (