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. Date 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

Date Input

New

A typed date field with a mask that adds its own separators and a month calendar that slides between months.

npx motionsnack add date-input

Customize

px
px
<DateInput />

Props

30 properties

PropertyTypeDefaultDescription
valuestring-Controlled date as ISO yyyy-mm-dd. Leave undefined to let the component manage it.
defaultValuestring''Date on first render when uncontrolled, ISO yyyy-mm-dd.
onChange(value: string) => void-Called with the ISO date, or an empty string while the date is incomplete or invalid.
namestring-Name of a hidden input that submits the ISO date with a form.
errorColorstringundefinedError colour for both themes. Undefined uses the per-theme pair (#dc2626 light, #ef4444 dark).
isDateDisabled(iso: string) => boolean-Days that cannot be picked, besides min / max.
openboolean-Controlled open state of the calendar.
defaultOpenbooleanfalseOpen state of the calendar on first render when uncontrolled.
onOpenChange(open: boolean) => void-Called on every user-caused open or close of the calendar.
chooseDateLabelstring'Choose date'Name of the calendar button while no date is set.
changeDateLabelstring'Change date, {date}'Name of the calendar button once a date is set.
previousMonthLabelstring'Previous month'Name of the previous month button.
nextMonthLabelstring'Next month'Name of the next month button.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Start date'Label above the field. Empty hides it.
format'dd.mm.yyyy' | 'mm/dd/yyyy' | 'yyyy-mm-dd''dd.mm.yyyy'Order of the typed date. Separators insert themselves while typing.
showCalendarbooleantrueShow the calendar button and its month view.
weekStartsOn'1' | '0''1'First day of the week in the calendar.
localestring'en-US'Locale of the month and weekday names, e.g. en-US or cs-CZ.
minstring''Earliest date allowed, ISO yyyy-mm-dd. Empty means no limit.
maxstring''Latest date allowed, ISO yyyy-mm-dd. Empty means no limit.
helperTextstring'Pick a weekday, we start projects Monday to Friday.'Small text under the field. Empty hides it.
invalidTextstring'That date does not exist.'Message for a full date that does not exist, e.g. 31.02.
rangeTextstring'Pick a date between {min} and {max}.'Message for a date outside min / max. {min} and {max} are replaced.
errorstring''Error message from outside. Any text switches the field to its error state.
requiredbooleanfalseMarks the field as required.
disabledbooleanfalseDisables the field.
heightnumber48Height of the field (48, or 40 compact).
radiusnumber12Corner radius of the field.

About Date Input

Date Input lets visitors type a date as fast as they can or pick one from a calendar. The mask follows the format you choose (day.month.year, month/day/year or year-month-day) and adds the separators itself, while Backspace removes them without getting stuck. A date that does not exist, like the 31st of February, or one outside the minimum and maximum shows a clear message. The calendar button opens a month view with the weekday names in your locale, today marked with a dot and the picked day filled in black and white. Months slide sideways as you move between them, and the grid works with the arrow keys, Page Up and Down, Home, End and Enter. onChange returns an ISO date.

What's included

  • Self-inserting separators in three formats
  • Month calendar with a sliding grid
  • Monday or Sunday week start, names from any locale
  • Min and max dates with disabled days
  • Invalid and out-of-range messages
  • Full keyboard navigation
  • 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 date-input