Avatar Picker
This component allows users to select and display an avatar image, with optional styling, state management, and accessibility support.
Constructors
AvatarPicker
AvatarPicker creates a new TAvatarPicker with the given parameters. By default, it initializes with a 120x120 frame size.
Methods
| Method | Description |
|---|---|
AccessibilityLabel(label string) | AccessibilityLabel sets the accessibility label for screen readers. |
Border(border ui.Border) | Border sets the border styling of the avatar picker. |
Enabled(b bool) | |
Frame(frame ui.Frame) | Frame sets the frame of the avatar picker directly. |
Padding(padding ui.Padding) | Padding sets the padding around the avatar picker. |
Visible(visible bool) | Visible toggles the visibility of the avatar picker. |
WithFrame(fn func(ui.Frame) ui.Frame) | WithFrame updates the frame of the avatar picker using a frame transformation function. |