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