Radio

A form input component that provides a radio button interface for single selection from a group of options.

Basic Radio

Creates a standard radio button with a label.

php
Options
The Radio component supports various configuration options.
  • checked: Whether the radio button is checked (default: false)
  • value: The value of the radio button when selected
  • disabled: Whether the radio button is disabled
  • required: Whether the radio button is required
  • readonly: Whether the radio button is readonly
  • name: The name of the radio button group
  • form: The form ID the radio button belongs to
Radio Examples
Here are examples of different ways to use the radio component.

Checked Radio

Creates a pre-selected radio button.

php

Styled Radio

Creates a radio button with a specific Bootstrap style.

php

Full-featured Radio

Creates a radio button with all available customizations.

Receive notifications via email
php
API
The radio component extends from the Input class so it has all its methods available.

Common alternative names: Radio Button, Option Button, Selection Button, Choice Button, Single Select, Option Control

Types: Basic Radio, Checked Radio, Required Radio, Disabled Radio, Styled Radio


Principles

Single Selection

Radio buttons provide a clear single-selection interface, making it obvious that the user can only select one option from a group.

Visual Feedback

The component provides immediate visual feedback through its checked state and styling.

Accessibility

Maintains keyboard accessibility and screen reader compatibility while providing a modern visual interface.


Anatomy

Radio Button Anatomy
  1. Container
  2. Outer wrapper with form-check class

  3. Input
  4. Radio input element

  5. Label
  6. Text description of the radio button's purpose

  7. Hint
  8. Optional helper text below the radio button


Usage

Use radio buttons for:

  • Single selection from multiple options
  • Preference settings
  • Mode selection
  • Category selection
  • Type selection
  • Status selection
  • Priority selection
Status
Current status and development information about the Radio component.