Specialized controls for numeric ranges and date selection.
slider
Numeric range selection.
{
key: 'volume',
type: 'slider',
label: 'Volume',
value: 50,
minValue: 0, // optional
maxValue: 100, // optional
step: 5, // optional
}Core Properties (all optional):
minValue: Minimum slider valuemaxValue: Maximum slider valuestep: Step increment value
The value is a number. Two kits have a range mode that changes it: PrimeNG props.range: true gives number[], and Ionic props.dualKnobs: true gives { lower, upper }. The inferred form value type follows these props.
Adapter Props
| Prop | Type | Description |
|---|---|---|
showValue | boolean | Display current value next to slider |
valuePrefix | string | Prefix string for displayed value |
valueSuffix | string | Suffix string for displayed value |
hint | string | Helper text below the field |
datepicker
Date selection control.
{
key: 'birthDate',
type: 'datepicker',
label: 'Birth Date',
value: null,
required: true,
minDate: new Date(1900, 0, 1), // optional
maxDate: new Date(), // optional
placeholder: 'Select your birth date',
}Core Properties (all optional):
minDate: Minimum selectable date (Date | string | null)maxDate: Maximum selectable date (Date | string | null)startAt: Initial calendar view date (Date | null)placeholder: Placeholder text (at field level, not in props)
Adapter Props
| Prop | Type | Description |
|---|---|---|
size | 'sm' | 'lg' | Input size |
floatingLabel | boolean | Use Bootstrap floating label |
displayMonths | number | Number of months to display |
navigation | 'select' | 'arrows' | 'none' | Calendar navigation style |
showWeekNumbers | boolean | Show week numbers in calendar |
hint | string | Helper text below the field |
Selecting several dates
PrimeNG props.selectionMode: 'multiple' | 'range' stores an array of ISO strings, and Ionic props.multiple: true stores an array of Dates. While a range is being picked, the value holds just its start. The inferred form value type follows these props.
Date formats and locale
Each adapter follows its UI library's locale setup:
- Material uses the app's
DateAdapter,MAT_DATE_FORMATSandMAT_DATE_LOCALEwhen provided, and falls back to the native adapter otherwise. The native adapter only parses typed dates in US order or ISO format, so apps that expect input like15.12.2026should provide a parsing adapter such asprovideDateFnsAdapter(). With the date-fns adapter,MAT_DATE_LOCALEtakes a date-fnsLocaleobject (for exampledefromdate-fns/locale), not a string. - Bootstrap renders a native
, which uses the browser's locale. - PrimeNG parses and displays dates with the
dateFormatprop, for example'dd.mm.yy'. Month and day names come from PrimeNG's translation config. - Ionic passes the
localeprop toion-datetimeand uses it for the displayed value. It defaults to the browser locale.