# Fieldset
The Fieldset component is used to group several form fields within a web form.
# Legend
Use the legend
prop or slot to create a <legend>
to label multiple fields, or when using components like checkboxes and radios.
Legends are required for fieldsets and will throw an error if the legend
prop is absent.
# Prop usage
# Slot usage
#
# Description
The description
prop adds additional text below your legend and above your content. Descriptions are intended to provide more context and guidance to users.
# Prop usage
# Slot usage
The description
slot is deprecated and will be removed in the next major release. Please use the description
prop instead.
#
# Fullwidth
The fullwidth
prop removes the max-width applied to the fieldset by default.
#
# Disabled
The disabled
prop disables the fieldset and gives it a disabled appearance. It will also pass disabled
to any FormField
components used within automatically.
#
# Errors
Use the error
prop to add an error message below the fieldset and highlights the legend in red. You can pass in a string if you want to display a message.
An error message should clearly explain what went wrong and how to fix it. Use passive voice so people don’t feel like they’re being blamed for the error.
# error-message Prop and Slot
The error-message
prop and slot are both deprecated and will be removed in the next major release. Please use the error
prop instead.
# Prop usage
# Slot usage
#
# Success
Use the success
prop to highlight the legend in green. You can pass in a string if you want to display a message.
It will only render if there is no error message.
# success-message Prop and Slot
The success-message
prop and slot are both deprecated and will be removed in the next major release. Please use the success
prop instead.