motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Textarea
  5. Auto Grow Textarea
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Textarea

Auto Grow Textarea

A labelled textarea that grows smoothly with its content and counts characters with an animated ring.

npx motionsnack add auto-grow-textarea

Customize

px
<AutoGrowTextarea />

Props

27 properties

PropertyTypeDefaultDescription
valuestring-Controlled text.
defaultValuestring''Text on first render when uncontrolled.
onChange(value: string) => void-Called with the new text on every change.
namestring-Name of the field in a form.
idstringgeneratedId of the textarea.
onSubmit(value: string) => void-Called with the text on Cmd/Ctrl+Enter.
accentstringundefinedColour of the counter ring. Undefined = monochrome.
warningColorstringundefinedWarning colour for both themes. Undefined uses the per-theme pair.
errorColorstringundefinedError colour for both themes. Undefined uses the per-theme pair.
remainingLabelPartial<Record<Intl.LDMLPluralRule, string>>{ one: '{n} character left', other: '{n} characters left' }Text read for the characters left.
overLimitLabelPartial<Record<Intl.LDMLPluralRule, string>>{ one: '{n} character too many', other: '{n} characters too many' }Error text when the limit is passed.
localestring'en-US'Locale for counting and plural rules.
durationnumber-Deprecated: the height changes instantly.
classNamestring''Extra classes on the wrapper.
labelstring'Message'Label above the field. An empty string hides it.
placeholderstring'Tell us about your project...'Placeholder shown while the field is empty.
errorstring''Error message. Any text switches the field to its error state.
helperTextstring'The field grows as you type.'Small text under the field. An empty string hides it.
minRowsnumber2Rows shown while the field is empty.
maxRowsnumber6Rows the field grows to before it starts to scroll.
maxLengthnumber160Character limit. 0 removes the limit and the ring.
warnAtnumber0.85Share of the limit at which the counter turns to the warning colour.
showCounterbooleantrueRing and number in the corner of the field.
radiusnumber12Corner radius of the field.
requiredbooleanfalseMarks the field as required.
readOnlybooleanfalseFocusable and selectable, but not editable.
disabledbooleanfalseDims the field and blocks typing.

About Auto Grow Textarea

Auto Grow Textarea starts at a few rows and eases taller line by line as you type, up to a maximum number of rows, after which it scrolls. Deleting text shrinks it again with the same eased motion. In the corner a ring fills as you approach the character limit while the number ticks over, and both turn to a warning tint near the limit. An accent focus ring fades in around the field when it receives focus. A label and helper text are wired up for assistive technology, and the remaining characters are announced once the warning starts.

What's included

  • Height eases between line counts, up to maxRows
  • Progress ring and ticking number for the character count
  • Warning tint near maxLength, with a live announcement
  • Accent focus ring that fades in
  • Label and helper text linked to the field
  • Controlled or uncontrolled: value, defaultValue, onChange
  • Light and dark looks, reduced-motion aware
Type
Animated React textarea component
Library
Components · Textarea
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add auto-grow-textarea