Textarea
A textarea in the same box as Input, which grows with its text and then scrolls.
npx shadcn add https://kinoui.com/r/textarea.jsonCopy install command
Examples
Default
It starts at three lines, grows with its text and then scrolls.
Invalid
Its mark sits in the top corner. For a counter, use InputGroupTextarea in an Input group.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/textarea.json- Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.tsxcomponents/kino/textarea.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Accessibility
- In a
Field, the label names it and the description and the error describe it. - It scrolls with a thin scrollbar once it reaches its tallest.
- Its corner follows the shape, but never becomes a pill.