Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Textarea

A multi-line text field with a label, an optional character counter and an error message.

ComponentsTextarea
inputhybrid
<arc-textarea>

Overview

Textarea wraps a native `<textarea>` with an uppercase label, a placeholder, an optional character counter and an error message. Use it for anything longer than one line, such as a support request, a comment or a bio. `rows` sets the starting height (4 by default). `resize` sets which way the reader can drag the field: `vertical` (the default), `horizontal`, `both` or `none`. Set `maxlength` and a live counter appears below the field. It turns red when the text reaches the limit, and screen readers hear the count through a polite live region. Pair Textarea with Form for validation, submission and an error summary across the whole form.

Guidelines

Do

  • Set a `label`. It's the field's accessible name
  • Use `placeholder` for an example value, never in place of the label. It disappears once the reader types
  • Set `maxlength` when the backend or the design has a limit, so the reader sees it as they type
  • Choose `rows` to match the length you expect
  • Use `resize="none"` when the field sits in a fixed-height layout
  • Use the `error` prop to show server-side validation messages after submission

Don't

  • Don't use Textarea for single-line values such as a name or an email. Use Input
  • Don't set `disabled` and `error` together. The reader can't act on the error
  • Don't restyle the border and focus ring with custom CSS. Change the design tokens

Features

  • The label is linked to the field with `aria-labelledby`
  • `error` turns the border red and shows the message below the field with `role="alert"`
  • `readonly` allows selecting and copying but not editing, and `disabled` blocks all interaction
  • Fires `arc-input` on every keystroke and `arc-change` on blur

Preview

Usage

Its events and state need JavaScript, so use the Web Component or a framework wrapper for those.

<div style="width:100%;">
  <arc-textarea
    label="Describe your issue"
    placeholder="Please provide as much detail as possible..."
    rows="5"
    maxlength="500"
  ></arc-textarea>
</div>

API

valuestring''
The current text content of the textarea. Updated on every keystroke and emitted via arc-input and arc-change events.
namestring''
Form field name submitted with the value. Required for native form integration via ElementInternals.
placeholderstring''
Hint text displayed inside the field when it is empty. Use it to show example input, never as a substitute for the label.
labelstring''
Visible label rendered above the textarea in uppercase. Automatically linked to the field via aria-labelledby, ensuring screen readers announce it correctly.
rowsnumber4
The number of visible text rows that set the initial height of the textarea. Does not limit content length; the user can scroll or resize beyond this height.
disabledbooleanfalse
Prevents user interaction and applies a muted visual treatment at 40% opacity. The field value is excluded from form submission when disabled.
errorstring''
Error message string. When non-empty, the textarea border turns red and the message is displayed below the field with role="alert" for screen reader announcement.
maxlengthnumber0
Maximum number of characters allowed. When set to a value greater than 0, a live counter appears below the field showing current length vs. limit, turning red when the limit is reached.
resize'none' | 'vertical' | 'horizontal' | 'both''vertical'
Controls whether and in which direction the user can drag to resize the textarea. Defaults to vertical-only resizing.
readonlybooleanfalse
Allows the user to select and copy text but prevents editing. The field has a subtle background change to indicate its read-only state.
size'sm' | 'md' | 'lg''md'
Controls the textarea size. Options: 'sm', 'md', 'lg'.
autoResizebooleanfalse
Automatically grows the textarea height to fit its content. Disables manual resize when enabled.
formAssociatedbooleantrue
propertiesobject{ // flag(), unlike `disabled`. The exclusion in props.js is specifically // about form-associated *platform* semantics: a `disabled` content // attribute that is merely present makes the element actually disabled // per the HTML spec, and formDisabledCallback assigns the property back, // so no converter can win. Neither of these is platform-mapped: // `required` is enforced by _computeValidity() below and `readonly` by // each component's own interaction handlers, so the stock converter buys // nothing here and costs the usual bug: `required="false"` read as true, // blocking submission of a form the author meant to leave optional. // Finding #48's shape, across all 26 form controls at once. required: flag(false), readonly: flag(false), }
Lit merges static properties up the prototype chain, so every consumer gets these without declaring them. required participates in constraint validation below; readonly reflects for styling and is enforced by each component's interaction handlers (the mixin can't know which gestures mutate state).
autoValidatesbooleantrue
Components that run their own constraint-validation logic (pattern checks, range checks) opt out of the automatic required sync by overriding this to false, and own the whole validity flag set instead.
form
validity
validationMessage
requiredbooleanfalse

Methods

checkValidity()boolean
Whether the control currently satisfies its constraints, per the native constraint-validation API. Fires invalid on the element when it does not, and reports nothing to the user.
reportValidity()boolean
As checkValidity(), but also shows the browser's validation message against the control when it fails.

Events

arc-inputdetail:{ value: string }
Fired on each keystroke with { value } detail
arc-changedetail:{ value: string }
Fired on blur when value has changed

See also