Textarea

Same treatment as Input, sized for longer notes. The sketch rectangle resizes with the element. Focus re-inks the border with a second seed.

<Textarea label="Note" placeholder="Scratch something down" roughness={1.5} />

CLI install

npx doodleui-react add textarea

Usage

import { Textarea } from "doodleui-react";

<Textarea label="Note" rows={5} />

Props

PropTypeDefaultNotes
labelReactNodeundefinedOptional label rendered above the field.
rowsnumber4Visible line count.
animatebooleantrueDraw-in the border on mount. Seed-morph on focus. Overrides DoodleUIProvider. Reduced motion disables this unless the provider set forceAnimate.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.