Documentation
¶
Overview ¶
Package components holds reusable, self-contained UI widgets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Button ¶
type Button struct {
ID string
Label string
// Key is an optional keyboard shortcut shown inside the button, keeping the
// mouse an accelerator rather than the only way in.
Key string
Variant Variant
Disabled bool
Hovered bool
MinWidth int
}
Button is a clickable control. Rendering registers a mouse zone under ID, so Hit can test a later mouse event against the region actually drawn.
Click to show internal directories.
Click to hide internal directories.