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. Input
  5. Text Field
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

Input

Text Field

New

One text field in seven looks, from a plain outline to an inset label, a pressed-in field and frosted glass.

npx motionsnack add text-field

Customize

Error Colour
Warning Colour
Success Colour
px
px
<TextField />

Props

33 properties

PropertyTypeDefaultDescription
valuestring-Controlled value. Leave undefined to let the component manage it.
defaultValuestring''Value on first render when uncontrolled.
onChange(value: string) => void-Called with the new text on every change.
namestring-Name submitted with a form.
autoCompletestringfrom typeNative autocomplete hint.
inputModestringfrom typeNative virtual keyboard hint.
clearLabelstring'Clear text'Accessible name of the clear button.
invalidbooleanfalseInvalid without its own message.
charactersLeftLabelstring'{n} characters left'Screen-reader counter text.
charactersOverLabelstring'{n} characters too many.'Error text past the limit.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
variant'outline' | 'filled' | 'glass''outline'Look of the field: outline, filled (forms on cards) or glass (over imagery only).
labelstring'Email'Label above the field. Empty hides it; then pass aria-label.
placeholderstring'you@studio.com'Hint inside the empty field.
helperTextstring'We reply within one working day.'Small text under the field. Empty hides it.
errorstring''Error message. Any text switches the field to its error state.
warningstring''Warning message in the helper slot. Does not block submit.
successbooleanfalseCheck at the end after an async check passed.
loadingbooleanfalseAsync check running: spinner at the end after 500ms.
icon'none' | 'mail' | 'user' | 'phone' | 'search' | 'link' | 'lock''none'Icon at the start of the field.
type'text' | 'email' | 'tel' | 'url' | 'password' | 'search' | 'number''email'Native input type.
requiredbooleanfalseMarks the field as required.
disabledbooleanfalseDisables the field.
readOnlybooleanfalseFocusable and selectable, but not editable.
clearablebooleanfalseClear button while the field has a value.
maxLengthnumber0Character limit for the counter. 0 = no limit.
showCounterbooleanfalseCharacter counter from 85 % of the limit.
errorColorstring''Error colour for both themes. Empty uses the per-theme pair.
warningColorstring''Warning colour for both themes. Empty uses the per-theme pair.
successColorstring''Success colour for both themes. Empty uses the per-theme pair.
heightnumber48Height of the field: 48, or 40 in filters, toolbars and table cells.
radiusnumber12Corner radius of the field.

About Text Field

Text Field is the everyday input of a form, built once and dressed seven ways. Outline, filled, underline and pill cover the usual looks; inset puts a small label inside the top of the box like a payment form; inset shadow presses the field into the surface; glass blurs whatever lies behind it, for a field on a photo or a coloured banner. Every look shares the library's field size and the same clear focus outline, white on dark pages and black on light ones. A leading icon, helper text, a required mark and an error state that turns the border red are built in, and it works controlled or uncontrolled.

What's included

  • Seven looks: outline, filled, underline, pill, inset label, inset shadow, glass
  • Clear focus outline, white on dark and black on light
  • Optional leading icon from 6 inline icons
  • Helper text and required mark
  • Error state with a red border and message
  • Controlled and uncontrolled value
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add text-field