Label

Renders an accessible label associated with controls.

Installation

$npx maddex add Label

Default

Start with the default checkbox pairing from the shadcn label example when the label should toggle the related control.

Preview

        
            
        
    

Label in Field

For form fields, pair FieldLabel with Maddex Field companions so label, input, and description stay grouped.

Preview

        
            
        
    

With Switch

Pair a label with a switch in settings rows where the text needs to toggle the control and describe the preference clearly.

Preview