- Docs
- Dropdown
Dropdown
Displays a menu to the user — such as a set of actions or functions — triggered by a button.
Usage
import (
. "github.com/canpacis/pacis-ui/components"
)
Dropdown(
DropdownTrigger(
Button(Text("Open Menu")),
),
DropdownContent(
DropdownItem(
ID("item-1"),
icons.User(),
Text("Profile"),
),
DropdownItem(
ID("item-2"),
icons.Settings(),
Text("Settings"),
),
),
)
On This Page