@using System.ComponentModel.DataAnnotations
@* Styleguide: the Data input components (Input, Select, Textarea, Checkbox, Toggle, Radio, Range, Rating, Filter, OTP,
File input, Fieldset, Label, Validator, Calendar). Everything sits in one EditForm with DataAnnotations: submit it
empty to see input-error and the validator hints. novalidate leaves the checking to Blazor. *@
DInput
@foreach (var color in Enum.GetValues())
{
}
⌘Khttps://.com
Immediate search: "@search", text: "@text"
Name is required
DSelect
@foreach (var color in Enum.GetValues())
{
}
Type
Pick one
DTextarea
@foreach (var color in Enum.GetValues())
{
}
Between 10 and 140 characters@(model.Bio?.Length ?? 0)/140
DCheckbox
@foreach (var color in Enum.GetValues())
{
}
DToggle
@foreach (var color in Enum.GetValues())
{
}
DRadioGroup / DRadio
@foreach (var color in Enum.GetValues())
{
}
Picked: @radioColor
@foreach (var size in sizes)
{
}
@foreach (var plan in plans)
{
}