Label#

Label renders a <p class="label"> — DaisyUI's muted caption text — for describing a control or adding a hint below it. It is the building block FormField uses for its label and hint; reach for it directly when you compose a field by hand inside a Fieldset.

Import#

TSX
import { Label } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Above and Below#

A Label works as a caption before the control as well as a hint after it.

TSX
Loading preview...

Custom Classes#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
classstring-Additional CSS classes

Slots#

SlotDescription
defaultLabel text