RoadieRoadie
  • Home
  • Brand
  • Foundations
  • Content
  • Tokens
  • Components
  • Charts
  • Widgets
  • Appearance
HomeBrandFoundations
Appearance

Components

  • Navigation

    • Breadcrumb
    • LinkBeta
    • NavigatorAlpha
    • Steps
    • Tabs
  • Layout

    • Accordion
    • CollapsibleBeta
    • PaneAlpha
    • ScrollArea
    • Separator
  • Actions

    • Button
    • IconButton
    • ToggleBeta
    • Toggle groupBeta
    • ToolbarBeta
  • Fields

    • EditorAlpha
    • Field
    • Fieldset
    • Input
    • Label
    • Number fieldBeta
    • OTP fieldBeta
    • Query fieldAlpha
    • Textarea
  • Choices

    • Autocomplete
    • CheckboxBeta
    • Combobox
    • Radio group
    • Select
    • SliderBeta
    • SwitchBeta
  • Date and time

    • CalendarBeta
    • CalendarTile
    • Countdown
    • Dashboard periodBeta
    • Date fieldBeta
    • Date pickerBeta
    • Date range pickerBeta
    • DateTime
    • Duration
    • Time fieldBeta
  • Collections

    • Card
    • Carousel
    • DataTableBeta
    • ListAlpha
    • Marquee
    • RecordGridAlpha
    • RecordTableAlpha
    • SortableAlpha
    • TableBeta
  • Overlays

    • Dialog
    • Drawer
    • MenuBeta
    • Popover
    • ToastBeta
    • Tooltip
  • Status

    • Badge
    • CalloutBeta
    • DeltaBeta
    • Empty state
    • MeterBeta
    • ProgressBeta
    • SkeletonBeta
    • SparklineBeta
    • StatTileBeta
  • Media & brand

    • AvatarBeta
    • Icon Tile
    • Image
    • Logo
    • PatternBeta
    • QR codeBeta
    • SpotIllustration
  • Text

    • Code
    • Highlight
    • KbdBeta
    • Mark
    • Prose

Textarea

Status
Stable
Added
Components 2.0.08 Apr 2026
Docs updated
19 Oct 2026

A multi-line text input for longer form content.

Import

import { Textarea } from '@oztix/roadie-components'

Examples

Default

<Textarea placeholder='Enter text' />

Emphasis

<Textarea emphasis='normal' placeholder='Normal emphasis' />
<Textarea emphasis='subtle' placeholder='Subtle emphasis' />

Sizes

<Textarea size='sm' placeholder='Small' />
<Textarea size='md' placeholder='Medium (default)' />
<Textarea size='lg' placeholder='Large' />

Auto resize

Uses CSS field-sizing: content to grow with the content. No manual resize handle. The textarea adjusts automatically.

<Textarea autoResize placeholder='This textarea grows as you type...' />

States

Textareas start neutral, gain an accent-coloured border and ring on focus, and switch to danger colouring when invalid.

{/* Default */}
<Textarea placeholder='Click to focus' />
{/* Invalid */}
<Textarea aria-invalid='true' defaultValue='Invalid content' />
{/* Disabled */}
<Textarea disabled placeholder='Disabled' />

Accessibility

  • Label association: Always pair with a <label> (or Field.Label) using matching htmlFor/id attributes.
  • Validation: Set aria-invalid="true" on invalid textareas. is-interactive-field provides visual danger styling automatically.
  • Description: Use aria-describedby to link helper or error text to the textarea.

API reference

Textarea

intent"neutral" | "brand" | "brand-secondary" | "brand-blue" | "brand-orange" | "brand-purple" | "accent" | "danger" | "success" | "warning" | "info" | null
Deprecated

Deprecated: Form controls take their colour from state; `is-interactive-field` handles it. Will be removed in v3.0.0.

autoResizeboolean
emphasis"normal" | "subtle" | null
size"sm" | "md" | "lg" | null
Previous page← Query fieldNext pageAutocomplete →