# SbRadio A radio button component for single selection within a group. Must be used inside an SbRadioGroup. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Value | TValue? | null | The value this radio represents | | Label | string? | null | Radio button label text | | Disabled | bool | false | Whether this radio is disabled | | HelperText | string? | null | Optional helper text shown below the label | | Id | string? | null | Element ID for the input | | Class | string? | null | Additional CSS classes | | Style | string? | null | Inline styles | | AdditionalAttributes | Dictionary\? | null | Additional HTML attributes (CaptureUnmatchedValues) | ## Templates / Slots (RenderFragments) | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment | Custom label content (takes precedence over Label parameter) | ### Template Usage Examples ```razor Custom Label with Icon ``` ## CSS Classes - `sb-radio` - Base class - `sb-radio--checked` - Selected state - `sb-radio--disabled` - Disabled state - `sb-radio__input` - Native input - `sb-radio__input-wrapper` - Wrapper around input - `sb-radio__circle` - Outer circle - `sb-radio__dot` - Inner dot (visible when selected) - `sb-radio__text` - Wrapper for label and helper - `sb-radio__label` - Label text - `sb-radio__helper` - Helper text ## Accessibility - Uses native `` - Shares `name` attribute with other radios in the group - Keyboard navigation via arrow keys within group - Label wraps input for expanded click area ## Examples ### Basic Usage See [SbRadioGroup](./SbRadioGroup.md) for complete examples. ```razor ``` ### With Rich Content ```razor Credit Card PayPal Bank Transfer ``` ### Disabled Option ```razor ```