Radio - Keep React

Radio Input Component is a user interface element used for selecting a single option from a set of mutually exclusive choices. It presents a list of options, and users can choose one option at a time by clicking on a radio button associated with each choice.

Table of Contents#

Default Radio Input#

The Default Radio Input is a fundamental user interface element that allows users to choose a single option from a group of options. It presents a list of choices, each accompanied by a radio button.

Choose your favorite country

Radio shape variant#

The Radio Shape Variant component introduces different shape options for radio inputs, allowing you to customize the appearance of radio buttons. The available shape variants are: "circle" and "square".

Choose your favorite country

Sizes Of Radio#

The Sizes of Radio component offers different size options for radio inputs to suit various design preferences and layouts. The available sizes include: sm md and lg.

Choose your favorite Framework

API Reference#

Explore the available props for the radio component

PropertyDescriptionTypeDefault
sizingSets the size of the radio input component.
sm
md
lg
lg
colorRadio input color
info
success
warning
error
info
radioShapeSpecifies the shape of the radio input, either circle or square.
circle
square
circle
valueValue associated with the radio input.stringNone
selectedCurrently selected value in a group of radio inputs.stringNone
onOptionChangeCallback function when the radio option changes.() => voidNone