Provides an accessible description for a form field.
The Description component provides an accessible description for a field. It renders a <div> element and should be used to provide additional context or instructions for a form field.
Descriptions must be used within the context of a Field, Fieldset, or ElementField component and will automatically be linked to the Control of the field using the aria-describedby attribute.
Usage
Props
The Description component accepts all props that a standard HTML <div> element would accept along with a few additional props:
Slot Props
The Description component provides a single slot prop, descriptionAttrs, which is only necessary when using the asChild prop.
Attributes
The following attributes are automatically applied to the element rendered by the Description component. This is also the shape of the descriptionAttrs slot prop when using the asChild prop.