- Android
- iOS
- Web
Radio Group
A Radio Group component is a UI element that allows users to select one option from a set of mutually exclusive choices. It typically consists of multiple radio buttons, where only one button can be selected at a time. Radio groups are commonly used in forms to gather user preferences, ensuring a clear and organized way to present options for selection. They enhance user experience by providing a straightforward interface for making single-choice decisions.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| orientation | "horizontal" | "vertical" | Optional | |
| items | readonly (string | ComponentOption)[] | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| id | string | Optional | |
| label | string | Optional | |
| labelClassName | string | Optional | |
| disabled | boolean | Optional | |
| value | string | Optional | |
| defaultValue | string | Optional | |
| onChange | ((value: string) => void) | Optional | |
| showLabel | boolean | Optional | |
| children | ReactNode | Optional |