Skip to main content

Radio

One option in a RadioGroup.

Inherits: Control

Properties

  • color - The color of the radio button.
  • label - The label shown next to the radio button.
  • sublabel - Secondary text shown below label.
  • value - The value the group takes when this option is selected.

Properties​

colorclass-attributeinstance-attribute​

color: ColorValue | None = None

The color of the radio button.

If None, the primary color of the theme is used.

labelclass-attributeinstance-attribute​

label: StrOrControl | None = None

The label shown next to the radio button.

sublabelclass-attributeinstance-attribute​

sublabel: StrOrControl | None = None

Secondary text shown below label.

valueinstance-attribute​

value: str

The value the group takes when this option is selected.