Show design guidelines
Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or command menus, where an action is initiated based on the selection.
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Add
Edit
Copy
Delete
Import
Export
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
<certara-dropdown> can be nested within itself using the nested attribute.
Dropdown Item
Dropdown Item
Dropdown Item
Dropdown Item
Nested Item
Nested Item
Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or command menus, where an action is initiated based on the selection.
animated
| |
|---|
| Attribute | animated |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Apply animation when menu opens and closes |
| |
|---|
| Attribute | button-color |
| Type | "brand" | "danger" | "inverse" | "neutral" | "secondary" | "success" |
| Default | 'secondary' |
| Required | false |
| Description | Supports any color available in <certara-button> |
| |
|---|
| Attribute | button-label |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Display text on dropdown opener button |
| |
|---|
| Attribute | button-size |
| Type | "lg" | "md" | "sm" |
| Default | 'md' |
| Required | false |
| Description | Supports any size available in <certara-button> |
| |
|---|
| Attribute | button-tabindex |
| Type | number |
| Default | undefined |
| Required | false |
| Description | Set custom tabindex for the dropdown opener button |
| |
|---|
| Attribute | button-variant |
| Type | "default" | "icon" | "icon-rounded" | "link" | "outline" | "reset" |
| Default | 'default' |
| Required | false |
| Description | Supports any variant available in <certara-button> |
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Will disable the dropdown opener button |
| |
|---|
| Attribute | menu-offset |
| Type | number |
| Default | 4 |
| Required | false |
| Description | Separation from the opener to the menu (depends on orientation) |
nested
| |
|---|
| Attribute | nested |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Specify that a nested dropdown can act as a submenu item of a containing dropdown |
open
| |
|---|
| Attribute | open |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Renders the dropdown with its menu already open, and stays in sync with user interaction: opening or closing the menu updates this value. Intended for documentation examples and tests. For programmatic control at runtime, prefer show() / hide() / toggle(). A menu opened this way is not dismissed by clicking elsewhere on the page — close it via hide() or the opener button. |
placement
| |
|---|
| Attribute | placement |
| Type | "bottom-end" | "bottom-start" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" |
| Default | 'bottom-start' |
| Required | false |
| Description | These options will suggest a starting point for the menu position, but <certara-dropdown> will automatically position itself within the viewport to avoid appearing offscreen |
position
| |
|---|
| Attribute | position |
| Type | "absolute" | "fixed" |
| Default | 'absolute' |
| Required | false |
| Description | This can be set to fixed if the dropdown menu is clipped by a bounding parent element |
showOpenerCaret
| |
|---|
| Attribute | show-opener-caret |
| Type | boolean |
| Default | true |
| Required | false |
| Description | If set to false, the dropdown opener will not show a caret icon |
| Name | Description | Bubbles |
|---|
certaraDropdownClose | | true |
certaraDropdownOpen | | true |
| Name | Signature | Description |
|---|
hide | () => Promise<void> | Closes the dropdown menu. |
show | () => Promise<void> | Opens the dropdown menu. It stays open until hide() is called or the user closes it. |
toggle | () => Promise<void> | Toggles the dropdown menu open or closed. |
| Name | Description |
|---|
| Main slot is reserved for <certara-dropdown-*> elements, but it does accept all children |
button-label | Can be used for custom label content, including icons |
Dropdown items can contain interactive button actions, hyperlinks, and checkboxes
Dropdown item with target blank
active
| |
|---|
| Attribute | active |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Whether the dropdown item is in an active state |
description
| |
|---|
| Attribute | description |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Additional descriptive text that shows below the label |
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | undefined |
| Required | false |
| Description | Set disabled state of control |
| |
|---|
| Attribute | hide-menu-on-click |
| Type | boolean |
| Default | true |
| Required | false |
| Description | The default behavior of the dropdown menu will close when this item is clicked |
href
| |
|---|
| Attribute | href |
| Type | string |
| Default | undefined |
| Required | false |
| Description | certara-dropdown-item renders as a <button> element by default, unless given an href |
target
| |
|---|
| Attribute | target |
| Type | "_blank" | "_parent" | "_self" | "_top" | "_unfencedTop" |
| Default | undefined |
| Required | false |
| Description | Target to be used in tandem with href if necessary |
| Name | Description | Bubbles |
|---|
certaraClick | Standard event emitted when the dropdown item is clicked | true |
certaraDropdownItemClick | Internal event emitted when the dropdown item is clicked, used by certara-dropdown | true |
There are no public methods available for this component
| Name | Description |
|---|
| Default dropdown-item content |
description | Slot for descriptive text |
right-content | Right-aligned content area for buttons and additional actions |
The <certara-dropdown-checkbox> uses all props from <certara-checkbox> with the exception of layout
checked
| |
|---|
| Attribute | checked |
| Type | boolean |
| Default | false |
| Required | false |
| Description | The checked state of the checkbox |
description
| |
|---|
| Attribute | description |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Additional descriptive text that shows below the label |
disabled
| |
|---|
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | The disabled state of the checkbox |
| |
|---|
| Attribute | hide-menu-on-click |
| Type | boolean |
| Default | false |
| Required | false |
| Description | The default behavior of the dropdown menu will close when this item is clicked |
indeterminate
| |
|---|
| Attribute | indeterminate |
| Type | boolean |
| Default | false |
| Required | false |
| Description | The indeterminate state of the checkbox. Can only be set via JavaScript |
name
| |
|---|
| Attribute | name |
| Type | string |
| Default | this.inputId |
| Required | false |
| Description | The name of the checkbox |
value
| |
|---|
| Attribute | value |
| Type | any |
| Default | 'on' |
| Required | false |
| Description | The value of the checkbox |
| Name | Description | Bubbles |
|---|
certaraBlur | Standard event emitted when checkbox is blurred | true |
certaraChange | Standard event emitted when checkbox is toggled | false |
certaraDropdownItemClick | Internal event emitted when the dropdown item is clicked, used by certara-dropdown | true |
certaraFocus | Standard event emitted when checkbox is focused | true |
There are no public methods available for this component
| Name | Description |
|---|
| Default dropdown-item-checkbox content |
description | Slot for descriptive text |
Section divider within a dropdown
There are no public properties available for this component
There are no events available for this component
There are no public methods available for this component
There are no slots available for this component
Grouping container within a dropdown. This provides the appropriate semantics
for a group of items with a corresponding label
headline
| |
|---|
| Attribute | headline |
| Type | string |
| Default | undefined |
| Required | false |
| Description | |
There are no events available for this component
There are no public methods available for this component
There are no slots available for this component