form-control-label

v4.9.10arrow_drop_down
v4.9.10
v4.5.2
v3.9.2
STATUS
Passing
DOWNLOADS
22,292
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
26 KB
If `true`, the component appears selected.
2 contributors
Install form-control-label as a package?
Copied
npm i @bit/mui-org.material-ui.form-control-label
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

If true, the component appears selected.

A control element. For instance, it can be be a Radio, a Switch or a Checkbox.

If true, the control will be disabled.

Pass a ref to the input element.

The text to be used in an enclosing label element.

The position of the label.

Callback fired when the state is changed.

The value of the component.

Drop in replacement of the Radio, Switch and Checkbox component. Use this component if you want to display an extra label. Demos:

API:

Drop in replacement of the Radio, Switch and Checkbox component. Use this component if you want to display an extra label.

Properties
NameTypeDescription
checked
bool

If true, the component appears selected.

classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
control
(required)
element

A control element. For instance, it can be be a Radio, a Switch or a Checkbox.

disabled
bool

If true, the control will be disabled.

inputRef
custom

Pass a ref to the input element.

label
node

The text to be used in an enclosing label element.

labelPlacement
'bottom' | 'end' | 'start' | 'top'

The position of the label.

name
string
onChange
function

The event source of the callback. You can pull out the new checked state by accessing event.target.checked (boolean).

value
any

The value of the component.

Help and resources