Skip to content

Date Picker

Date Picker

Date Picker provides a Material Design-compliant date input field with calendar popup, Indonesian locale support, and form integration.

PropertyValue
Input Height40-48px
Border Width1px
Border Radius4px
Calendar Icon20-24px
Font Size14-16px
Primary ColorBrand color (#4f46e5)

Standard input with placeholder

Brand color border, active input

Red border, validation failed

Grey, read-only, not interactive

Calendar popup displayed

OptionTypeDefaultDescription
configDatepickerConfigRequiredConfiguration object
isErrorbooleanfalseError state
isDisabledbooleanfalseDisabled state
iconCalenderstringdefault iconCustom calendar icon path
onFocusbooleanundefinedFocus state control
SettingValue
Localeid (Indonesian)
Date AdapterMomentDateAdapter
FormatDD/MM/YYYY
  • Reactive Forms compatible via ControlValueAccessor
  • Supports NG_VALUE_ACCESSOR
  • writeValue(), registerOnChange(), registerOnTouched() implemented
  • setDisabledState() for programmatic disable
  • Date of birth fields
  • Appointment scheduling
  • Date range selection
  • Form date inputs
✅ Do❌ Don’t
Set min/max datesAllow invalid dates
Show format hintsLeave users guessing
Use for future datesUse for birthdates (min required)
Indonesian localeWrong language
Form validationSkip error handling