24 lines
556 B
Plaintext
24 lines
556 B
Plaintext
<div class="my-1 flex text-secondary">
|
|
<input type="checkbox" id="@Id" name="@Name" class="checked:bg-accent w-6 h-6 rounded-full bg-secondary border-secondary border-4 appearance-none cursor-pointer">
|
|
@if (!string.IsNullOrEmpty(Title))
|
|
{
|
|
<label class="block font-bold px-2">@Title</label>
|
|
}
|
|
@ChildContent
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
public string? Title { get; set; }
|
|
|
|
[Parameter]
|
|
public string? Id { get; set; }
|
|
|
|
[Parameter]
|
|
public string? Name { get; set; }
|
|
|
|
}
|