Skip to content

Dropdown Item

Code

Dropdown item
packages/certara-ui/src/components/dropdown/dropdown-item/dropdown-item.tsx
<certara-dropdown-item>Dropdown item</certara-dropdown-item>
Dropdown Item
packages/certara-ui/src/components/dropdown/dropdown-item/dropdown-item.tsx
<certara-dropdown button-label="Dropdown">
<certara-dropdown-item>Dropdown Item</certara-dropdown-item>
</certara-dropdown>

certara-dropdown-item

Properties

PropertyAttributeDescriptionTypeDefault
descriptiondescriptionAdditional descriptive text that shows below the labelstringundefined
hideMenuOnClickhide-menu-on-clickThe default behavior of the dropdown menu will close when this item is clickedbooleantrue
hrefhrefcertara-dropdown-item renders as a <button> element by default, unless given an hrefstringundefined

Events

EventDescriptionType
certaraClickStandard event emitted when the dropdown item is clickedCustomEvent<any>
certaraDropdownItemClickInternal event emitted when the dropdown item is clicked, used by certara-dropdownCustomEvent<any>

Slots

SlotDescription
Default dropdown-item content
"description"Slot for descriptive text
"right-content"Right-aligned content area for buttons and additional actions

Checkboxes

Label
<certara-dropdown-checkbox description="Description">Label</certara-dropdown-checkbox>
Label Disabled label Label
packages/certara-ui/src/components/dropdown/dropdown-checkbox/dropdown-checkbox.tsx
<certara-dropdown button-label="Status">
<certara-dropdown-checkbox>Label</certara-dropdown-checkbox>
<certara-dropdown-checkbox disabled>Disabled label</certara-dropdown-checkbox>
<certara-dropdown-checkbox description="Description">Label</certara-dropdown-checkbox>
</certara-dropdown>

certara-dropdown-checkbox

Overview

The <certara-dropdown-checkbox> uses all props from <certara-checkbox> with the exception of layout

Properties

PropertyAttributeDescriptionTypeDefault
checkedcheckedbooleanfalse
descriptiondescriptionAdditional descriptive text that shows below the labelstringundefined
disableddisabledbooleanfalse
indeterminateindeterminatebooleanfalse
namenamestringthis.inputId
sizesize"md" | "sm"'md'
valuevalueany'on'

Events

EventDescriptionType
certaraBlurCustomEvent<void>
certaraChangeCustomEvent<CheckboxChangeEventDetail<any>>
certaraFocusCustomEvent<void>

Slots

SlotDescription
Default dropdown-item-checkbox content
"description"Slot for descriptive text

Dependencies

Depends on

Graph

graph TD;
certara-dropdown-checkbox --> certara-checkbox
certara-checkbox --> certara-help-block
style certara-dropdown-checkbox fill:#f9f,stroke:#333,stroke-width:4px

Design resources

View component in Figma