# daisyUI Documentation - Fieldset Component Fieldset is a container for grouping related form elements. It includes fieldset-legend as a title and label as a description. ## Classes and Usage ### Core Classes: - **fieldset** - The main fieldset container - **fieldset-legend** - The title of the fieldset - **label** - Label for inputs (used for descriptions) ## Examples ### Basic Fieldset with Legend and Label ```html
``` ### Fieldset with Background and Border ```html ``` ### Fieldset with Multiple Inputs ```html ``` ### Fieldset with Join Items ```html ``` ### Login Form with Fieldset ```html ``` ## Features - Groups related form elements together - Provides semantic structure for forms - Uses fieldset-legend as the title - Can include descriptive labels - Works well with other daisyUI components like inputs and buttons - Customizable with Tailwind classes This component is useful for organizing form elements into logical groups, improving accessibility and user experience in complex forms.