Skip to content
Nana UI

Textarea

A <nana-textarea> element.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/textarea";
<nana-textarea label="Message" placeholder="Write something…" rows="3" style="min-width:18rem"></nana-textarea>
PropertyTypeDefaultDescription
labelstring''
valuestring''
namestring''
placeholderstring''
disabledbooleanfalse
requiredbooleanfalse
readonlybooleanfalse
invalidbooleanfalse
successbooleanfalse
autoGrowbooleanfalse
helperTextstring''
errorMessagestring''
rowsnumber4
maxlengthnumber | undefined
minlengthnumber | undefined
maxHeightnumber | undefined
autocompleteHTMLTextAreaElement['autocomplete']'off'
spellcheckbooleanfalse
showWordCountbooleanfalse
wrapHTMLTextAreaElement['wrap'] | undefined
inputIdnana-textarea-${Math.random().toString(36).slice(2, 7)}
PartDescription
textareaThe native <textarea> element
counterThe character counter span
  • Keyboard accessible
  • Screen-reader labels
  • Focus-visible states
  • ARIA roles and states
  • WCAG 2.2 AA contrast
Explore Textarea interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook