Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A multi-line field that grows with its text and counts down to its limit.
npx shadcn@latest add ikislay/pixel-ui/textareaimport { Textarea } from "@/components/ui/textarea"export function Demo() {return <Textarea placeholder="Leave a note" aria-label="Note" maxLength={140} />}
1// Loading…
Options you can pass to customize this component.
maxLengthnumberThe character limit. Setting it shows the countdown ring.
invalidbooleanMarks the field invalid with a red ring and aria-invalid.
rowsnumberSets the starting height. The field still grows past it as you type.
onFeedback(event: "error") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the wrapper. Other props go to the textarea.