AisFieldset
AisFieldset creates a <fieldset> element. The component exposes a legend for the fieldset and provides a control point for all of its children.
Props
legend
The legend prop will specify the content of the fieldset's legend if specified. The legend provides an accessible way to label a group of fields. Be aware that the legend's styling and placement may not match that of a typical child element.
Custom Legend
If you would like more control over the legend's styling, leave the prop undefined and include your own <legend> element as the first child of the fieldset.
Alternative Heading
Alternatively, one could use a heading element (e.g. h3) or div and use the aria-labelledby attribute on the fieldset to make the relationship available to screen readers.
size
The size prop sets the size of controls within the fieldset. The fieldset itself will also get a size class as a styling hook.
disabled
The disabled prop will disable all controls in the fieldset.
rounded
The rounded prop will provide a rounded setting for child elements. Use rounded to limit page configuration. It applies to text fields, textareas, selects, and buttons. Please report elements that do not respond as expected. Note that AisFieldset will also inherit rounded settings from parents like AisForm when they are provided. The fieldset's prop will take priority over a provided value as shown in the following example.