RayCraftDocs
v1.0.3 raycraft.dev
On this page

RadioGroup

Free

One choice from a short list. Use Items for simple lists or Radio children for custom labels. Arrow keys move the selection, as with native radio buttons.

Example

RadioGroup control

Parameters

RadioGroup

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DirectionStackDirectionRow (default) or Column.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
ItemsIEnumerable<TValue>The options to choose from.
ItemTextFunc<TValue, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
ValueTValueCurrent value. Use with @bind-Value.

Radio

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
StylestringInline style added to the root element.
ValueTValueCurrent value. Use with @bind-Value.

Events

RadioGroup

EventTypeDescription
ValueChangedEventCallback<TValue>Raised when the value changes.

Package

RadioGroup is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.