21 lines
669 B
Plaintext
21 lines
669 B
Plaintext
@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; }
|
||
|
|
}
|