Skip to content
GitHub11 stars

Fieldset

A native fieldset element with an easily stylable legend.

Billing details
<FieldsetRoot class="fieldset">
    <FieldsetLegend class="fieldset-legend">
        Billing details

Anatomy

Import the primitives and assemble the parts:

@using Blazix.Primitives

<FieldsetRoot>
    <FieldsetLegend />
</FieldsetRoot>

API Reference

FieldsetRoot

Renders a <fieldset> element.

ParameterTypeDefault
Disabled

Whether the component should ignore user interaction.

bool false
Render RenderFragment<FieldsetRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

FieldsetLegend

Renders a <div> element.

ParameterTypeDefault
Render RenderFragment<FieldsetRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-disabled

Present when the fieldset is disabled.

-