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 Radius16px
Calendar Icon20-24px
Font Size14-16px
Primary ColorBrand color (#001A41)

Standard input with placeholder

Standard Variant

Grey, read-only, not interactive

Standard Variant

Calendar popup displayed

Standard Variant
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

View in Storybook →