Label

Caption for form fields

Import

import { Label } from '@windmill/react-ui'

Base

The default base Label doesn't need any special prop and should always enclose all elements that it describes.

live editor

Check/radio

The check and radio props apply the respective styles to the input, making them look beautiful. They are interchangeable, so you could use only radio or only check, but I would recommend that you use the one that better describes its use.

live editor

Disabled

The disabled prop applies disabled styles to the label. You still need to handle the disabled state individually for the inputs. See example below.

live editor

Props overview

PropDescriptionTypeDefault
checkapply layout styles to the labels of checkbox inputsboolean
radioapply layout styles to the labels of radio inputsboolean
disabledapply disabled styles to the labelboolean

Customizing

See Customization to learn how to change defaultTheme styles.