Radio

The Radio component is used to choose an option.

1. Import

KUMUI exports 2 Radio-related components:

import {  RadioGroup, RadioGroupItem } from "@rohitgadekar/kimui";

2. Usage


3. API

3.1 RadioGroup

AttributeTypeDescriptionDefault
defaultValue

string

Specifies the initial value of the radio group.-
children

React.ReactNode

Radio buttons or custom elements to render inside the radio group.-

3.2 RadioGroupItem

AttributeTypeDescriptionDefault
value

string

The unique value for this radio button.-
id

string

The id attribute for the radio button.-