For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/radio.md.
v0.0.57
  • English
  • Radio

    Data Entry@rockshin/tao-ui

    Selects exactly one option from a mutually exclusive set.

    When to use

    Use RadioGroup when every option is visible and only one can be selected.

    Recommended

    • Use concise labels.
    • Provide a default value when one option is recommended or required.

    Avoid

    • Do not use RadioGroup for very long option lists; use Select instead.

    Examples

    Basic usage

    TSX

    Standalone states

    TSX

    Vertical group

    TSX

    Controlled radio group

    Group onChange returns the selected value directly.

    Frequency: Weekly
    TSX

    Vertical and disabled options

    Use a vertical layout for longer labels and disable individual options.

    TSX

    Native form submission

    Set a group name to read its selected value from FormData.

    TSX

    Radio group sizes

    Group options inherit size for consistent alignment and targets.

    TSX

    API

    RadioGroup

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-
    nameNative group name; generated when omitted to isolate keyboard navigation.string | undefined-

    Radio

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-