Radio
An implementation of a radio. Only to be used in a FluentRadioGroup
.
<FluentRadio>
wraps the <fluent-radio>
element, a web component implementation of a radio element leveraging the
Fluent UI design system.
Examples
Default
Without a label:
With a label:
Download:
States
Checked
Required
Disabled
Download:
Aria label
Visual vs audio label
Download:
Documentation
FluentRadio<> Class
Parameters
Name | Type | Default | Description |
---|---|---|---|
AriaLabel | string? | Gets or sets the text used on aria-label attribute. | |
Checked | bool? | Gets or sets a value indicating whether the element is checked. | |
ChildContent | RenderFragment? | Gets or sets the content to be rendered inside the component. | |
Disabled | bool | False | Disables the form control, ensuring it doesn't participate in form submission |
Label | string? | Gets or sets the text displayed just above the component. | |
LabelTemplate | RenderFragment? | Gets or sets the content displayed just above the component. | |
Name | string? | Gets or sets the name of the parent fluent radio group. | |
ReadOnly | bool | False | Gets or sets a value indicating whether the element is readonly. |
Required | bool | False | Gets or sets a value indicating whether the element needs to have a value. |
Value | TValue? | Gets or sets the value of the element. |