Design guidelines
Date pickers allow users to enter a date either through text input, or by choosing a date from the calendar.
Date and time picker for selecting a single date, a range, or a date with a time of day.
ariaLabel
Attribute aria-labelType stringDefault undefinedRequired falseDescription Accessible label when not inside a form-group
config
Attribute undefinedType DatepickerConfigDefault `{ selectMode: ‘range’, selected: [], disabled: [], selectScopeSize: 0, weekHeader: ‘per-month’, // No viewRange by default: months are generated on demand, so navigation is // unbounded unless min / max (or an explicit viewRange clamp) says otherwise. i18n: {
weekDays: DEFAULT_WEEK_DAYS,
// Locale-derived so the polyfill segments match what a native date input
// would render. Only the polyfill draws this separator, so platforms on the
// native path are unaffected. An explicit config.i18n.dateSeparator still wins.
dateSeparator: getLocaleDateFormat().separator,
},
monthsToShow: 1,
showNavigation: true,
}| | __Required__ |false` |
| Description | Datepicker configuration object (calendar layout, presets, i18n, etc.). |
disabled
Attribute disabledType booleanDefault falseRequired falseDescription Disable the control
endName
Attribute end-nameType stringDefault undefinedRequired falseDescription Hidden field name for range end (defaults to name.end)
max
Attribute maxType stringDefault undefinedRequired falseDescription Maximum allowed value (ISO date or datetime string)
min
Attribute minType stringDefault undefinedRequired falseDescription Minimum allowed value (ISO date or datetime string)
mode
Attribute modeType "date" | "datetime" | "month" | "range" | "time"Default 'range'Required falseDescription Control shape: date, month, datetime, or range
name
Attribute nameType stringDefault undefinedRequired falseDescription Form field name (hidden ISO field; range uses name.start / name.end)
placement
Attribute placementType "bottom-start" | "top-start"Default 'bottom-start'Required falseDescription Preferred vertical placement for the popover panel
position
Attribute positionType "absolute" | "fixed"Default 'absolute'Required falseDescription CSS positioning strategy for the popover panel
readonly
Attribute readonlyType booleanDefault falseRequired falseDescription Read-only segments (indicator still opens popover)
required
Attribute requiredType booleanDefault falseRequired falseDescription Whether the field is required
startName
Attribute start-nameType stringDefault undefinedRequired falseDescription Hidden field name for range start (defaults to name.start)
step
Attribute stepType numberDefault undefinedRequired falseDescription Time step in seconds (900 is 15 minutes). Applies to time mode and to the datetime popover’s time picker.
value
Attribute valueType stringDefault ''Required falseDescription Current value (ISO). Reflected as the value attribute. date: YYYY-MM-DD
Attribute value-formatType "display" | "iso"Default 'display'Required falseDescription Format for the trigger / form value
variant
Attribute variantType "default" | "link"Default 'default'Required falseDescription Visual variant of the control
Name Description Bubbles certaraChangeemits when the composed ISO value changes (certara-ui convention) truecertaraDatepickerDateSelectEmits when a date is selected. Use it to react to date selected truecertaraDatepickerDeselectEmits when a date is deselected. Use it to react to date deselected truecertaraDatepickerHighlightemits when a date or more is highlighted as potential select candidate truecertaraDatepickerHighlightClearemits when date highlight is cleared after dates deselect truecertaraDatepickerPopoverToggleemits when the popover panel opens or closes truecertaraDatepickerRangeSelectemits when a complete date range is selected use it to react to a complete date range selected truecertaraFormControlErroremits consolidated validation error for certara-form-group true
There are no public methods available for this component
There are no slots available for this component
Single-line text input. Pair with <certara-form-group> for labelling.
accept
Attribute acceptType stringDefault undefinedRequired falseDescription Accepted file types for file inputs (e.g., “.pdf,.doc”).
disabled
Attribute disabledType booleanDefault falseRequired falseDescription Prevents user interaction.
max
Attribute maxType number | stringDefault undefinedRequired falseDescription Maximum value for number/date inputs.
maxlength
Attribute maxlengthType numberDefault undefinedRequired falseDescription Maximum number of characters allowed.
min
Attribute minType number | stringDefault undefinedRequired falseDescription Minimum value for number/date inputs.
minlength
Attribute minlengthType numberDefault undefinedRequired falseDescription Minimum number of characters required.
name
Attribute nameType stringDefault this.inputIdRequired falseDescription Form control name, used for form submission and validation events.
pattern
Attribute patternType stringDefault undefinedRequired falseDescription Regex pattern the value must match.
placeholder
Attribute placeholderType stringDefault undefinedRequired falseDescription Placeholder text shown when empty.
readonly
Attribute readonlyType booleanDefault falseRequired falseDescription Prevents editing while allowing selection and copy.
required
Attribute requiredType booleanDefault falseRequired falseDescription Marks the field as required for form validation.
size
Attribute sizeType "md" | "sm"Default 'md'Required falseDescription Visual size variant of the input.
step
Attribute stepType number | stringDefault undefinedRequired falseDescription Step increment for number inputs.
type
Attribute typeType "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url"Default 'text'Required falseDescription Input type, affects keyboard on mobile and validation.
value
Attribute valueType stringDefault undefinedRequired falseDescription Current value of the input.
Name Description Bubbles certaraBlurEmitted when the input loses focus. truecertaraChangeEmitted when value changes from the previous value. truecertaraFocusEmitted when the input gains focus. truecertaraFormControlErrorEmitted when validation state changes. Payload is the error message or empty string when valid. truecertaraInputEmitted on every keystroke. true
Name Signature Description setBlur() => Promise<void>Programmatically blurs the input. setError(error: string) => Promise<void>Sets a custom error message. This allows consumers to call input.setError('my error message') instead of input.setAttribute('error', 'my error message'). setFocus() => Promise<void>Programmatically focuses the input.
Name Description appendContent placed after the input (e.g., buttons, icons). prependContent placed before the input (e.g., labels, icons).
Date Pickers allow users to enter a date either through text input, or by choosing a date from the calendar.
Date pickers can display past, present, or future dates. They should use sensible defaults based on their context.
The start and end dates may be manually entered or edited in the text field.
May or may not include a dropdown with preset time periods.
If a preset time period is selected, the system displays the corresponding dates in the text input field.
The expandable calendar menu includes day, month, and year selections for start and end dates and highlights all dates between them.
The calendar closes after an end date is selected.
Date pickers are keyboard operable.
Always give users the option to enter the date using the text field.
For more information, see our accessibility guidelines .
View component in Figma