disabled
Description
Optional. Defines whether a color picker is disabledUsage
disabled?: boolean;
Parameters
true
- a color picker is disabledfalse
- (default) a color picker is enabled
Example
<ColorPicker colors={['#65D3B3', '#FFC975', '#58C3FE']} disabled={true} />
Details
It is also possible to set a color picker to the disabled state by declaring the property with no value:
<ColorPicker disabled />
In JSX, writing the prop without a value (<ColorPicker disabled />
) is equivalent to specifying disabled={true}
.
Related article: Setting the disabled state
Related sample: ColorPicker