Dropdown Form-like element that allows users to select an option from a list of choices.
Note:
Use this with the button and menu components. It's a supplement for .prs-btn and .prs-menu. The preview example is using the browser's built-in popover API and anchor positioning for maximum accessibility and NO JavaScript dependency.
Properties Jump to heading
| Class / Token | Type | |
|---|---|---|
.prs-dropdown |
Component | Wrapper |
.prs-dropdown-btn |
Modifier | Variant for .prs-btn |
.prs-dropdown-menu |
Part | Required for .prs-menu |
.prs-dropdown-menu-top |
Modifier | Position the menu above the trigger element |
.prs-dropdown-menu-left |
Modifier | Position the menu before the trigger element |
.prs-dropdown-menu-right |
Modifier | Position the menu after the trigger element |
.prs-dropdown-menu-end |
Modifier | Align the end of the menu to the end of the trigger element |
.prs-dropdown-menu-center |
Modifier | Align the menu centered to the trigger element |
.prs-dropdown-menu_open |
Modifier | Force open the menu |