Skip to content

Textarea

Displays a form textarea for longer text input.

Installation

bash
npx @galaxy-stack/nebula-cli@latest add textarea
bash
pnpm dlx @galaxy-stack/nebula-cli@latest add textarea
bash
yarn dlx @galaxy-stack/nebula-cli@latest add textarea
bash
bunx @galaxy-stack/nebula-cli@latest add textarea
bash
# If you have installed galaxy-design globally
galaxy-design add textarea

Usage

API Reference

Props

PropTypeDefaultDescriptionFrameworks
valuestring | number-Controlled textarea valueAll
defaultValuestring | number-Uncontrolled initial valueAll
placeholderstring-Placeholder textAll
disabledbooleanfalseDisables the textareaAll
rowsnumber-Visible number of text rowsAll
namestring-Field name for form submissionAll
requiredbooleanfalseMakes field requiredAll
readOnlybooleanfalseMakes textarea read-onlyAll
maxLengthnumber-Maximum number of charactersAll
autoCompletestring-Autocomplete attributeAll
classNamestring''CSS class namesAll

Accessibility

  • Keyboard Navigation: [TODO]
  • Screen Reader: [TODO]
  • Focus Management: [TODO]
  • WCAG Compliance: WCAG 2.1 Level AA compliant

Author

Bùi Trọng Hiếu (kevinbui)

License

MIT © 2025 Bùi Trọng Hiếu (kevinbui)

Released under the MIT License.