ant-design-blazor/components/radio/Radio.razor

21 lines
637 B
C#
Raw Normal View History

@namespace AntDesign
@typeparam TValue
@inherits AntDomComponentBase
2020-04-24 18:32:50 +08:00
<label @onclick="_=>OnClick()" class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
<span class="@RadioClassMapper.Class">
<input type="radio"
autofocus="@AutoFocus"
class="@InputClassMapper.Class"
disabled="@Disabled"
checked="@IsChecked"
name="@_name"
@bind="@Value"
@ref="InputRef" />
<span class="@InnerClassMapper.Class"></span>
</span>
@if (ChildContent != null)
{
<span>@ChildContent</span>
}
</label>