value | Date | GogDateRange | null | null | The selection: a Date in single mode, a { start, end } pair in range mode. Two-way bindable with [(value)]. |
selectionMode | 'single' | 'range' | 'single' | Whether the field picks one day or a start/end pair. |
format | string | null | GOG_CONFIG.datepicker.format ?? 'dd.MM.yyyy' (or '... HH:mm' when showTime is true) | A token pattern (yyyy, MM, dd, HH, hh, mm, ss, a) used for BOTH rendering and parsing, so what is written can always be read back. Left unset, it is derived from showTime automatically; an explicit value overrides that derivation, so widen it yourself if you set one and also turn showTime on. |
locale | string | GOG_CONFIG.datepicker.locale ?? 'en-US' | BCP-47 tag driving month and weekday names, through Intl. |
firstDayOfWeek | number | GOG_CONFIG.datepicker.firstDayOfWeek ?? from the locale | 0 = Sunday … 6 = Saturday. |
min / max | Date | null | null | Selectable bounds. |
disabledDates | ((date: Date) => boolean) | null | null | Extra exclusions as a predicate — an array cannot express "weekends". |
defaultMonth | Date | null | null | Which month the panel opens on when there is no selection yet. |
numberOfMonths | number | 1 | Months shown side by side. Two is what makes a range picker usable. |
showTime | boolean | false | Adds a clock under the grid. |
hourFormat / minuteStep / showSeconds | '12' | '24' / number / boolean | '24' / 1 / false | How that clock is configured. |
showTodayButton / showThisMonthButton | boolean | true / false | Two separate footer actions: "Today" SELECTS today; "This month" only moves the view back. |
todayLabel / thisMonthLabel / openCalendarLabel / clearAriaLabel | string | 'Today' / 'This month' / 'Open calendar' / 'Clear date' | Wording for the footer actions and the two icon buttons. |
allowTextInput | boolean | true | Whether the date can be typed as well as picked. Parsing uses the same pattern as rendering, so 31.02.2026 is rejected rather than silently becoming 3 March. |
inline | boolean | false | Renders the calendar always-visible, with no field. Literally gog-calendar on its own. |
clearable | boolean | GOG_CONFIG.control.clearable ?? false | A clear button, shown only once a date is set. |
label / ariaLabel / placeholder / inputId | string | '' | Field label, accessible name, placeholder, and an id for an external <label>. |
floatLabel / floatLabelShowPlaceholder | 'none' | 'in' | 'on' | 'over' / boolean | GOG_CONFIG.floatLabel.* ?? 'none' / false | Float-label variant and whether the placeholder reappears once it has floated. |
errorMessage / errorDisplay | string / 'manual' | 'auto' | '' / GOG_CONFIG.control.errorDisplay ?? 'manual' | Validation message, shown manually or derived from the bound form control. |
size / disabled / fullWidth | GogSize / boolean / boolean | GOG_CONFIG.control.size ?? 'md' / false / true | Density, disabled state, and how the field sizes itself. |
appendToBody / dropdownDirection / dropdownZIndex | boolean / GogDropdownDirection / number | null | GOG_CONFIG.dropdown.* ?? component defaults | Panel placement. appendToBody renders it into <body> so an overflow-clipped ancestor cannot cut it off. |