Documentation
¶
Overview ¶
Package radiobutton contains Material 3 Radio Button components.
Reference: [Radio Button](https://m3.material.io/components/radio-button/overview) Specs: [Radio Button Specs](https://m3.material.io/components/radio-button/specs)
Index ¶
Constants ¶
View Source
const Material3RadioButtonNodeID = "Material3RadioButton"
Variables ¶
View Source
var Defaults = radioButtonDefaults{}
Defaults contains the default values for RadioButton.
Functions ¶
This section is empty.
Types ¶
type Composable ¶
type Composable = api.Composable
func RadioButton ¶
func RadioButton( selected bool, onClick func(), options ...RadioButtonOption, ) Composable
RadioButton creates a Material3 radio button. RadioButton creates a Material3 radio button.
type HandlerWrapper ¶
type HandlerWrapper struct {
Func func()
}
type RadioButtonColors ¶
type RadioButtonColors struct {
SelectedColor graphics.Color
UnselectedColor graphics.Color
DisabledColor graphics.Color
}
RadioButtonColors represents the colors used by a RadioButton in different states.
type RadioButtonOption ¶
type RadioButtonOption func(*RadioButtonOptions)
func WithColors ¶
func WithColors(colors RadioButtonColors) RadioButtonOption
func WithEnabled ¶
func WithEnabled(enabled bool) RadioButtonOption
func WithModifier ¶
func WithModifier(m ui.Modifier) RadioButtonOption
type RadioButtonOptions ¶
type RadioButtonOptions struct {
Modifier ui.Modifier
Enabled bool
Colors RadioButtonColors
}
func DefaultRadioButtonOptions ¶
func DefaultRadioButtonOptions(c Composer) RadioButtonOptions
Click to show internal directories.
Click to hide internal directories.