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. Addon Input
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

Addon Input

New

A text field with fixed text before or after the value, such as https:// or a currency, as plain text or boxed edges.

npx motionsnack add addon-input

Customize

Error Colour
px
px
<AddonInput />

Props

21 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.
invalidbooleanfalseInvalid without its own message.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Website'Label above the field. Empty hides it.
prefixstring'https://'Fixed text before the value. Empty hides it.
suffixstring''Fixed text after the value. Empty hides it.
addonStyle'boxed' | 'inline''boxed'Prefix and suffix as plain text inside the field, or as boxes on its edges.
placeholderstring'yourstudio.com'Hint inside the empty field.
helperTextstring'Where people can see your work.'Small text under the field. Empty hides it.
errorstring''Error message. Any text switches the field to its error state.
type'text' | 'url' | 'email' | 'number' | 'tel''text'Native input type.
requiredbooleanfalseMarks the field as required.
disabledbooleanfalseDisables the field.
readOnlybooleanfalseFocusable and selectable, but not editable.
errorColorstring''Error colour for both themes. Empty uses the per-theme pair.
heightnumber48Height of the field.
radiusnumber12Corner radius of the field.

About Addon Input

Addon Input is for values that always share the same start or end: a web address, a price, a weight or a username. The fixed text sits inside the field as quiet plain text, or in boxes on its edges, and darkens once the field is focused or filled. Focus shows the library's clear outline around the whole field, white on dark pages and black on light ones. A label, helper text, required mark and an error state that recolours the outline are built in. It works controlled or uncontrolled.

What's included

  • Prefix and suffix text
  • Inline or boxed addons
  • Clear focus outline, white on dark and black on light
  • Label, helper text and required mark
  • Error state with alert message
  • 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 addon-input