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
| Prop | Description | Type | Default |
|---|---|---|---|
check | apply layout styles to the labels of checkbox inputs | boolean | |
radio | apply layout styles to the labels of radio inputs | boolean | |
disabled | apply disabled styles to the label | boolean |
Customizing
See Customization to learn how to change defaultTheme styles.