전체 카탈로그
Data InputDateInput21 props

Date Input

DateInput lets the user type or pick a date from a calendar popover. Use it for scheduling, deadlines, booking dates, or any form field that needs a specific calendar date.

공식 문서 열기
live previewData Input

Preview

Single date picker with calendar popover.

Import

import {DateInput} from '@astryxdesign/core/DateInput';

Astryx 문서 권장 방식대로 root barrel이 아니라 컴포넌트 subpath에서 가져옵니다.

When to use

DateInput lets the user type or pick a date from a calendar popover. Use it for scheduling, deadlines, booking dates, or any form field that needs a specific calendar date.

dateinputdatepickerdatefieldcalendardateselectdateentrydatechooser

Important props

onChange(value: ISODateString | undefined) => voidoptional
changeAction(value: ISODateString | undefined) => void | Promise<void>optional
sizesm | md | lgoptional
numberOfMonths1 | 2optional

Theming targets

astryx-date-input

Best practices

  • DoProvide clear labels and descriptions so users understand what date is expected.
  • DoUse min, max, and dateConstraints to restrict selectable dates to valid ranges.
  • DoUse hasClear when the date is optional so the user can reset it.
  • DoShow a loading state with changeAction when the date triggers a server-side save.