类型 SidebarMenuItem
API 文档由 Go 源码生成,内容为英文。
type SidebarMenuItem struct {
ID ui.ID
Label string
Icon string
VectorIcon ui.Icon
Trailing string
Action SidebarMenuAction
Active bool
Disabled bool
Variant SidebarMenuVariant
Size SidebarMenuSize
}SidebarMenuItem is one explicit menu-button declaration. Trailing is the SidebarMenuBadge: a small medium-weight count at the trailing edge, which takes the item's foreground color while it is active or hovered.