Dropdown
Use dropdown for a lightweight context menu for housing navigation and actions.
On this page
Description
Dropdown is a lightweight context menu for housing navigation and actions.
They're great for instances where you don't need the full power (and code) of the SelectMenu.
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
overlay | Symbol |
| One of |
with_caret | Boolean |
| Whether or not a caret should be rendered in the button. |
system_arguments | Hash | N/A |
Examples
Slots
button
Required trigger for the dropdown. Has the same arguments as Button,
but it is locked as a summary tag.
menu
Required context menu for the dropdown.
| Name | Type | Default | Description |
|---|---|---|---|
as | Symbol | N/A | When |
direction | Symbol | N/A | One of |
scheme | Symbol | N/A | Pass |
header | String | N/A | Optional string to display as the header |
system_arguments | Hash | N/A |
Dropdown::Menu::Item
Items to be rendered in the Dropdown menu.
Dropdown::Menu
This component is part of Dropdown and should not be
used as a standalone component.
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
as | Symbol |
| When |
direction | Symbol |
| One of |
header | String |
| Header to be displayed above the menu. |
system_arguments | Hash | N/A |
Slots
items
| Name | Type | Default | Description |
|---|---|---|---|
tag | Symbol | N/A | One of |
divider | Boolean | N/A | Whether the item is a divider without any function. |
system_arguments | Hash | N/A |