Files
decePubClient/Components/Daisy/DataInput/DFieldset.razor
T

21 lines
669 B
Plaintext
Raw Normal View History

@inherits DComponentBase
@* daisyUI Fieldset: https://daisyui.com/components/fieldset/ . Legend becomes the fieldset-legend, Description the
trailing p.label; disabled on the fieldset disables every field in it. *@
<fieldset @attributes="AdditionalAttributes" class="@Cx("fieldset", Class)">
@if (Legend is not null)
{
<legend class="fieldset-legend">@Legend</legend>
}
@ChildContent
@if (Description is not null)
{
<p class="label">@Description</p>
}
</fieldset>
@code {
[Parameter] public RenderFragment Legend { get; set; }
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public RenderFragment Description { get; set; }
}