A component to set a legend for a Fieldset by passing
in via the {@link FieldsetProps.legend} prop.
// Creating a fieldset with a legend
<Fieldset
id="fieldsetId"
className="fieldsetClass"
describedBy="fieldsetDescribedBy"
role="fieldsetRole"
legend={
<FieldsetLegend id="legendId" className="legendClass" isPageHeading>
children
</FieldsetLegend>
}
>
children
</Fieldset>
A component to set a legend for a Fieldset by passing in via the {@link FieldsetProps.legend} prop.