Skip to content

Select

Show design guidelines

HTML React Angular
Option 1 Option 2 Option 3
<certara-select placeholder="Select an option">
<certara-select-option value="1">Option 1</certara-select-option>
<certara-select-option value="2">Option 2</certara-select-option>
<certara-select-option value="3">Option 3</certara-select-option>
</certara-select>
import { CertaraSelect, CertaraSelectOption } from '@certara/certara-ui-react';
<CertaraSelect placeholder="Select an option">
<CertaraSelectOption value={1}>Option 1</CertaraSelectOption>
<CertaraSelectOption value={2}>Option 2</CertaraSelectOption>
<CertaraSelectOption value={3}>Option 3</CertaraSelectOption>
</CertaraSelect>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-select placeholder="Select an option">
<certara-select-option value="1">Option 1</certara-select-option>
<certara-select-option value="2">Option 2</certara-select-option>
<certara-select-option value="3">Option 3</certara-select-option>
</certara-select>

A flexible select component supporting single/multi-select, search, async loading, and creatable options. Compatible with react-select, select2, and mat-select patterns.

ariaLabel

Attributearia-label
Typestring
Defaultnull
Requiredfalse
DescriptionAccessible label for the select (use when not inside a form-group)

async

Attributeasync
Typeboolean
Defaultfalse
Requiredfalse
DescriptionEnable async loading mode

asyncConfig

Attributeundefined
TypeSelectAsyncConfig
Defaultundefined
Requiredfalse
DescriptionAsync configuration options

clearable

Attributeclearable
Typeboolean
Defaulttrue
Requiredfalse
DescriptionAllow clearing the selection

closeOnSelect

Attributeclose-on-select
Typeboolean
Defaultundefined
Requiredfalse
DescriptionClose menu after selecting (default: true for single, false for multi)

creatable

Attributecreatable
Typeboolean
Defaultfalse
Requiredfalse
DescriptionAllow creating new options

creatableConfig

Attributeundefined
TypeSelectCreatableConfig
Defaultundefined
Requiredfalse
DescriptionCreatable configuration options

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionWhether the control is disabled

error

Attributeerror
Typestring
Default''
Requiredfalse
DescriptionError message to display

filterFn

Attributeundefined
Type(option: SelectOption<unknown>, query: string) => boolean
Defaultundefined
Requiredfalse
DescriptionCustom filter function

labelField

Attributelabel-field
Typestring
Default'label'
Requiredfalse
DescriptionLabel field name if options are objects

loading

Attributeloading
Typeboolean
Defaultfalse
Requiredfalse
DescriptionShow a loading indicator

maxMenuHeight

Attributemax-menu-height
Typenumber
Default300
Requiredfalse
DescriptionMaximum height of dropdown menu in pixels

minSearchChars

Attributemin-search-chars
Typenumber
Default0
Requiredfalse
DescriptionMinimum characters before filtering

multiple

Attributemultiple
Typeboolean
Defaultfalse
Requiredfalse
DescriptionEnable multiple selection mode

name

Attributename
Typestring
Default''
Requiredfalse
DescriptionThe name of the control for form submission

options

Attributeundefined
TypeSelectOption<unknown>[] | SelectOptionGroup<unknown>[]
Default[]
Requiredfalse
DescriptionOptions array - can be flat or grouped

placeholder

Attributeplaceholder
Typestring
Default'Select...'
Requiredfalse
DescriptionPlaceholder text when no option is selected

placement

Attributeplacement
Type"auto" | "bottom-end" | "bottom-start" | "top-end" | "top-start"
Default'bottom-start'
Requiredfalse
DescriptionPreferred dropdown placement

readonly

Attributereadonly
Typeboolean
Defaultfalse
Requiredfalse
DescriptionWhether the control is read-only

required

Attributerequired
Typeboolean
Defaultfalse
Requiredfalse
DescriptionWhether the control is required for form validation

searchable

Attributesearchable
Typeboolean
Defaultfalse
Requiredfalse
DescriptionEnable search/filtering

size

Attributesize
Type"lg" | "md" | "sm"
Default'md'
Requiredfalse
DescriptionSize variant of the control

value

Attributevalue
Type(string | number)[] | number | string
Defaultnull
Requiredfalse
DescriptionCurrent selected value(s)

valueField

Attributevalue-field
Typestring
Default'value'
Requiredfalse
DescriptionValue field name if options are objects

variant

Attributevariant
Type"default" | "link"
Default'default'
Requiredfalse
DescriptionVisual variant of the control
NameDescriptionBubbles
certaraBlurEmitted on blurtrue
certaraChangeEmitted when the value changestrue
certaraCloseEmitted when the dropdown closestrue
certaraCreateEmitted when a new option is createdtrue
certaraFocusEmitted on focustrue
certaraFormControlErrorEmitted for form control errorstrue
certaraLoadEmitted when async options should be loadedtrue
certaraOpenEmitted when the dropdown openstrue
certaraSearchEmitted when the search query changestrue
NameSignatureDescription
addOption(option: SelectOption) => Promise<void>Adds an option to the list
clear() => Promise<void>Clears the current selection
close() => Promise<void>Closes the dropdown menu
open() => Promise<void>Opens the dropdown menu
removeOption(value: string | number) => Promise<void>Removes an option from the list
setBlur() => Promise<void>Removes focus from the control
setFocus() => Promise<void>Sets focus to the control
setValue(value: SelectValue) => Promise<void>Sets the value programmatically
NameDescription
Default slot for declarative certara-select-option and certara-select-optgroup elements
no-optionsCustom content when no options are available
prefixContent to show before the selected value (e.g., an icon)

A single option within a certara-select dropdown. Can be used declaratively or options can be passed programmatically.

data

Attributeundefined
Type{ [x: string]: unknown; }
Defaultundefined
Requiredfalse
DescriptionArbitrary data to attach to this option.

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionWhether this option is disabled and cannot be selected.

highlighted

Attributehighlighted
Typeboolean
Defaultfalse
Requiredfalse
DescriptionInternal: Whether this option is currently highlighted via keyboard navigation.

label

Attributelabel
Typestring
Defaultundefined
Requiredfalse
DescriptionThe display label for this option. If not provided, uses slot content.

selected

Attributeselected
Typeboolean
Defaultfalse
Requiredfalse
DescriptionInternal: Whether this option is currently selected.

value

Attributevalue
Typenumber | string
Defaultundefined
Requiredfalse
DescriptionThe value of this option. Must be unique within the select.
NameDescriptionBubbles
certaraOptionSelectEmitted when this option is clicked/selected.true

There are no public methods available for this component

NameDescription
The label content for the option

A group of options within a certara-select dropdown. Provides a visual grouping with a label header.

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionWhether all options in this group are disabled.

label

Attributelabel
Typestring
Defaultundefined
Requiredfalse
DescriptionThe label displayed as the group header.

There are no events available for this component

There are no public methods available for this component

NameDescription
The option elements within this group