New to KendoReact? Start a free 30-day trial

RadioButton

Component

Represents the KendoReact RadioButton component.

Accepts properties of type RadioButtonProps. Obtaining the ref returns an object of type RadioButtonHandle.

Definition

Package:@progress/kendo-react-inputs

Properties Interface:RadioButtonProps

Properties

Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message.

Sets the aria-label attribute on the RadioButton input element.

checked?

boolean

Specifies if the Radio button is checked.

The content of the RadioButton component.

Specifies a list of CSS classes that will be added to the Radio button.

disabled?

boolean

Specifies if the Radio button is disabled.

id?

string

Sets the id of the Radio button.

index?

number

Specifies the current index of the Radio button.

label?

string

Sets the label of the Radio button (see example).

Sets the label position of the Radio button (see example). Accepts two options: before or after. Defaults to after.

name?

string

Sets the name property of the Radio button.

The event handler that will be fired when RadioButton is blurred.

Parameters:eventRadioButtonBlurEvent

The event handler that will be fired when the changes the selected value.

Parameters:eventRadioButtonChangeEvent

The event handler that will be fired when RadioButton is focused.

Parameters:eventRadioButtonFocusEvent

size?

"small" | "medium" | "large"

Configures the size of the RadioButton.

The available options are:

  • small
  • medium
  • large
  • null—Does not set a size className.
Default:

medium

style?

CSSProperties

Sets additional CSS styles to the Radio button.

tabIndex?

number

Sets the tabIndex property of the Radio button. Defaults to 0.

valid?

boolean

Overrides the validity state of the component. If valid is set, the required property will be ignored.

This property is part of the FormComponentProps interface.

Sets the value to be submitted.

References

The RadioButton ref.