Pular para o conteúdo

Radio Button

Este conteúdo não está disponível em sua língua ainda.

The RadioButton component allows users to select a single option from a group of choices.

  • Single selection: Only one option in a group can be selected at a time.
  • Accessible labels: Supports descriptive labels for each option.
  • Customizable appearance: Supports sizes and status colors.
  • Form integration: Works with forms and controlled state.
  • Consistent styling: Matches theme and UI standards.
PropTypeDefaultDescription
labelstringText label displayed alongside the radio button.
namestringGroup name for mutually exclusive selection.
checkedbooleanfalseWhether the radio button is selected.
sizestringVisual size variant (e.g., small, medium, large).
colorstringColor indicating status or theme.
disabledbooleanfalseDisables user interaction.
classstringOptional CSS classes for custom styling.
stylestringInline style overrides.
  • Group related radio buttons with the same name for exclusive selection.
  • Provide clear and concise labels for accessibility.
  • Avoid using radio buttons for multiple selections; use checkboxes instead.
  • Use consistent size and color across related options.
  • Ensure keyboard accessibility and focus states are visible.