The shadcn Textarea, plus an auto-growing field with a token count for prompts.
Import it and pass your content. The props that matter most are listed next.
import { TextareaField } from "@/components/ui/notchset/textarea";
export function TextareaExample() {
return (
<TextareaField label="System prompt" meta="Planner v14" costPerToken={0.0000004} helper="Sent before every run" focusHelper="Saved as draft" />
);
}Textarea–
as shadcnThe bare textarea (it sizes to its content).
TextareaField label / meta–
ReactNodeThe label and a reading on the right.
value / defaultValue / onValueChange–
string / (value) => voidThe value.
minHeight / maxHeight–
numberAuto-grow bounds. Default 96 and 220; past the maximum it scrolls.
tokenLimit–
numberThe meter's limit. Default 2000.
estimateTokens–
(text) => numberDefault ceil(chars / 4).
costPerToken–
numberShows the cost per run.
helper / focusHelper–
stringThe helper, and the helper while focused.
Textareadata-slot="textarea"
The textarea.
TextareaFielddata-slot="textarea-field"
The instrument's box.
Footerdata-slot="textarea-footer"
The token meter, estimate and cost.
components/ui/notchset/textarea.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/textarea.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/textarea.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release