Fieldset
Fieldset is a container for grouping related form elements. Use Fieldset.Legend for the title and Label for description text.
Import
import { Fieldset, Label, Input, Button, Join, Row, Col, Text } from '@sigx/daisyui';
Basic Usage
Loading preview...
Styled Fieldset
Add background, border, and padding with Tailwind utility classes.
Loading preview...
Multiple Inputs
Group several labeled inputs together.
Loading preview...
With Join
Combine inputs and buttons inside a fieldset using Join.
Loading preview...
Login Form
A complete login form example.
Loading preview...
Props
Fieldset
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | undefined | Additional CSS classes (e.g. bg-base-200 border p-4) |
children | JSX.Element | — | Child elements (legend, labels, inputs) |
Fieldset.Legend
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | undefined | Additional CSS classes |
children | JSX.Element | — | Legend text content |
Label
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | undefined | Additional CSS classes |
children | JSX.Element | — | Label/description text |