ant-design-blazor/components/checkbox/Checkbox.razor
2020-06-02 20:27:53 +08:00

22 lines
693 B
C#

@namespace AntDesign
@inherits AntInputComponentBase<bool>
<label class="ant-checkbox-wrapper" style="@Style;" id="@Id" @ref="Ref">
<span class="@ClassMapper.Class" style="">
<input @ref="_inputElement"
value="@(Label)"
checked="@(Checked)"
disabled="@(Disabled)"
@onchange="@InputCheckedChange"
@attributes="@InputAttributes"
type="checkbox"
class="ant-checkbox-input" />
<span class="ant-checkbox-inner"></span>
</span>
@if (ChildContent != null)
{
<span @ref="_contentElement">
@ChildContent
</span>
}
</label>