Textarea

@sushindustries/ui

A textarea in the same clothes as Input, growing with its content where the browser allows.

4 min read
View as MarkdownEdit on GitHub

Props

Accepts every prop of TextareaHTMLAttributes<HTMLTextAreaElement>.

Notes

rows defaults to 4 when left unset, but it only sets the starting height. Where field-sizing: content is supported, the visible height tracks what is typed and the stylesheet's own min-height: 4.5em does the same job rows would otherwise do - so passing a larger rows rarely changes what a modern browser shows. It still matters as the fallback height in browsers without field-sizing support.