Acceptable Radio properties

Note that some properties are inherited from other sets.

Hierarchy

Properties

checked?: boolean

Indicates whether the component is selected.

Example:

<Radio checked={true} />
disabled?: boolean

Indicates whether the component is disabled and can't be selectable

Example:

<Radio disabled={true} />
id?: string

"Fills the ID of the element (not very practical)."

Example:

 <View id="id" />
name: string

The name of the radio component's option group.

Example:

<Radio name="" />
onChange: ((value) => void)

Type declaration

    • (value): void
    • Function called when the component's value is changed. Receives the new selected value as an argument.

      Example:

      <Radio onChange={this.myFuncion} />
      

      Parameters

      • value: string

      Returns void

transform?: string

"Prepare a position transforming of element"

Example:

 <View transform="rotate(45deg)" />
transition?: string

"Prepare a transition of visual state change"

Example:

 <View transition="background-color 0.5s ease-in-out" />
value: string

The value associated to the component.

Example:

<Radio value="" />
visualState?: "success" | "danger" | "warning"

"Determines the visual state of the component and its children."

Example:

 <View visualState="success" />