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. Joined Inputs
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

Joined Inputs

New

Two to four fields joined into one box, such as first and last name, with an outline only around the field in use.

npx motionsnack add joined-inputs

Customize

px
px
px
<JoinedInputs />

Props

20 properties

PropertyTypeDefaultDescription
valuestring[]-Controlled values, one per field. Leave undefined to let the component manage them.
defaultValuestring[][]Values on first render when uncontrolled.
onChange(values: string[]) => void-Called with all values whenever one changes.
namesstring'firstName, lastName'Form names of the fields, separated by commas.
autoCompletesstring'given-name, family-name'Autocomplete hints of the fields, separated by commas.
errorColorstringundefinedError colour for both themes. Undefined uses the per-theme pair (#dc2626 light, #ef4444 dark).
idstringgeneratedId prefix of the inputs.
classNamestring''Extra classes on the wrapper.
labelstring'Full name'Label above the whole group. Empty hides it.
fieldLabelsstring'First name, Last name'Labels of the fields, separated by commas. Their count (2 to 4) sets how many fields there are.
placeholdersstring'Jane, Doe'Hints of the fields, separated by commas.
widthsstring'1, 1'Relative widths of the fields, separated by commas, e.g. 2, 1.
labelStyle'inside' | 'none''inside'Field labels as small text inside each field, or placeholders only.
helperTextstring'As it should appear on the invoice.'Small text under the group. Empty hides it.
errorstring''Error message. Any text switches the group to its error state.
requiredbooleanfalseMarks every field as required.
disabledbooleanfalseDisables the group.
heightnumber48Height of one field (48, or 40 compact).
radiusnumber12Corner radius of the group.
stackBelownumber420Below this width of the group the fields stack under each other.

About Joined Inputs

Joined Inputs puts fields that belong together into one shared box: first and last name, street and number, city and postcode. Each field keeps a small label inside its top edge, or just a placeholder, and the field being typed in gets the library's clear focus outline on top of the shared border. Labels, placeholders, names, autocomplete hints and relative widths are plain comma-separated props, so two fields become three or four by adding a word. Below a width you set the fields stack under each other, decided by the width of the group itself rather than the screen. Helper text, required and error states cover the whole group.

What's included

  • Two to four fields in one shared box
  • Focus outline on the field in use
  • Labels inside each field or placeholders only
  • Relative widths per field
  • Stacks by the group's own width
  • Helper text, required and error states
  • 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 joined-inputs