Show 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-label |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Accessible label when not inside a form-group |
config
| |
|---|
| Attribute | undefined |
| Type | DatepickerConfig |
| Default | DEFAULT_CONFIG |
| Required | false |
| Description | Datepicker configuration object (calendar layout, presets, i18n, etc.). |
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Disable the control |
endName
| |
|---|
| Attribute | end-name |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Hidden field name for range end (defaults to name.end) |
max
| |
|---|
| Attribute | max |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Maximum allowed value (ISO date or datetime string) |
min
| |
|---|
| Attribute | min |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Minimum allowed value (ISO date or datetime string) |
mode
| |
|---|
| Attribute | mode |
| Type | "date" | "datetime" | "month" | "range" | "time" |
| Default | 'range' |
| Required | false |
| Description | Control shape: date, month, datetime, or range |
name
| |
|---|
| Attribute | name |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Form field name (hidden ISO field; range uses name.start / name.end) |
placement
| |
|---|
| Attribute | placement |
| Type | "bottom-start" | "top-start" |
| Default | 'bottom-start' |
| Required | false |
| Description | Preferred vertical placement for the popover panel |
position
| |
|---|
| Attribute | position |
| Type | "absolute" | "fixed" |
| Default | 'absolute' |
| Required | false |
| Description | CSS positioning strategy for the popover panel |
readonly
| |
|---|
| Attribute | readonly |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Read-only segments (indicator still opens popover) |
required
| |
|---|
| Attribute | required |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Whether the field is required |
startName
| |
|---|
| Attribute | start-name |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Hidden field name for range start (defaults to name.start) |
step
| |
|---|
| Attribute | step |
| Type | number |
| Default | undefined |
| Required | false |
| Description | Time step in seconds (900 is 15 minutes). Applies to time mode and to the datetime popover’s time picker. |
value
| |
|---|
| Attribute | value |
| Type | string |
| Default | '' |
| Required | false |
| Description | Current value (ISO). Reflected as the value attribute. date: YYYY-MM-DD |
| |
|---|
| Attribute | value-format |
| Type | "display" | "iso" |
| Default | 'display' |
| Required | false |
| Description | Format for the trigger / form value |
variant
| |
|---|
| Attribute | variant |
| Type | "default" | "link" |
| Default | 'default' |
| Required | false |
| Description | Visual variant of the control |
| Name | Description | Bubbles |
|---|
certaraChange | emits when the composed ISO value changes (certara-ui convention) | true |
certaraDatepickerDateSelect | Emits when a date is selected. Use it to react to date selected | true |
certaraDatepickerDeselect | Emits when a date is deselected. Use it to react to date deselected | true |
certaraDatepickerHighlight | emits when a date or more is highlighted as potential select candidate | true |
certaraDatepickerHighlightClear | emits when date highlight is cleared after dates deselect | true |
certaraDatepickerPopoverToggle | emits when the popover panel opens or closes | true |
certaraDatepickerRangeSelect | emits when a complete date range is selected use it to react to a complete date range selected | true |
certaraFormControlError | emits 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 | accept |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Accepted file types for file inputs (e.g., “.pdf,.doc”). |
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Prevents user interaction. |
max
| |
|---|
| Attribute | max |
| Type | number | string |
| Default | undefined |
| Required | false |
| Description | Maximum value for number/date inputs. |
maxlength
| |
|---|
| Attribute | maxlength |
| Type | number |
| Default | undefined |
| Required | false |
| Description | Maximum number of characters allowed. |
min
| |
|---|
| Attribute | min |
| Type | number | string |
| Default | undefined |
| Required | false |
| Description | Minimum value for number/date inputs. |
minlength
| |
|---|
| Attribute | minlength |
| Type | number |
| Default | undefined |
| Required | false |
| Description | Minimum number of characters required. |
name
| |
|---|
| Attribute | name |
| Type | string |
| Default | this.inputId |
| Required | false |
| Description | Form control name, used for form submission and validation events. |
pattern
| |
|---|
| Attribute | pattern |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Regex pattern the value must match. |
placeholder
| |
|---|
| Attribute | placeholder |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Placeholder text shown when empty. |
readonly
| |
|---|
| Attribute | readonly |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Prevents editing while allowing selection and copy. |
required
| |
|---|
| Attribute | required |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Marks the field as required for form validation. |
size
| |
|---|
| Attribute | size |
| Type | "md" | "sm" |
| Default | 'md' |
| Required | false |
| Description | Visual size variant of the input. |
step
| |
|---|
| Attribute | step |
| Type | number | string |
| Default | undefined |
| Required | false |
| Description | Step increment for number inputs. |
type
| |
|---|
| Attribute | type |
| Type | "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" |
| Default | 'text' |
| Required | false |
| Description | Input type, affects keyboard on mobile and validation. |
value
| |
|---|
| Attribute | value |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Current value of the input. |
| Name | Description | Bubbles |
|---|
certaraBlur | Emitted when the input loses focus. | true |
certaraChange | Emitted when value changes from the previous value. | true |
certaraFocus | Emitted when the input gains focus. | true |
certaraFormControlError | Emitted when validation state changes. Payload is the error message or empty string when valid. | true |
certaraInput | Emitted 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 |
|---|
append | Content placed after the input (e.g., buttons, icons). |
prepend | Content placed before the input (e.g., labels, icons). |