Field Types

21 field types covering every common form input pattern.

Text Inputs

<TextField Label="Name" @bind-Value="name" Required Placeholder="John Doe" />
<PasswordField Label="Password" @bind-Value="password" ShowStrength="true" />
<MaskedField Label="Phone" @bind-Value="phone" Mask="(###) ###-####" />
<TextAreaField Label="Bio" @bind-Value="bio" Rows="4" />

Numeric

<NumberField Label="Age" @bind-Value="age" Min="0" Max="120" />
<SliderField Label="Volume" @bind-Value="volume" Min="0" Max="100" Step="5" />

Selection

<SelectField Label="Country" @bind-Value="country" Options="@countries" />
<MultiSelectField Label="Skills" @bind-Values="skills" Options="@skillOptions" />
<RadioGroupField Label="Priority" @bind-Value="priority" Options="@priorities" />
<CheckboxGroupField Label="Languages" @bind-Values="languages" Options="@langs" />

Boolean

<CheckboxField Label="I agree to terms" @bind-Value="agreed" />
<SwitchField Label="Enable notifications" @bind-Value="enabled" />

Date & Time

<DateField Label="Birthday" @bind-Value="birthday" />
<TimeField Label="Start Time" @bind-Value="startTime" />
<DateRangeField Label="Project Dates" @bind-StartDate="start" @bind-EndDate="end" />

Special

<ColorField Label="Brand Color" @bind-Value="color" />
<RatingField Label="Satisfaction" @bind-Value="rating" MaxRating="5" />
<FileField Label="Attachment" @bind-Value="files" Multiple="true" Accept=".pdf,.docx" />
<AutocompleteField Label="City" @bind-Value="city" Options="@cities" />

Shared Field Parameters

Every field accepts these common parameters:

ParameterTypeDescription
LabelstringVisible label text (required)
Placeholderstring?Placeholder text
HelperTextstring?Help text below field
RequiredboolMark as required
DisabledboolDisable the field
ReadOnlyboolRead-only mode
ErrorsIReadOnlyList<string>?Validation errors to display