FlatColorPickerProps
Represents the properties of FlatColorPicker component.
Name | Type | Default | Description |
---|---|---|---|
activeView? |
|
|
Sets the initially active view when both 'gradient' and 'palette' views are rendered.
Use with the |
ariaLabel? |
|
Represents the label of the FlatColorPicker component. | |
ariaLabelledBy? |
|
Identifies the element(s) which will label the component. | |
className? |
|
Sets additional classes to the FlatColorPicker. | |
defaultValue? |
|
Sets the default color value. | |
disabled? |
|
Determines whether the FlatColorPicker is disabled. | |
format? |
|
|
Sets the default input format in the gradient input editor. |
header? |
|
Sets custom header component. | |
id? |
|
Sets the | |
onChange? |
|
The event handler that will be fired when the user click the "Apply" button or on blur when the "Apply" button is not present. | |
onPreviewChange? |
|
The event handler that will be fired when the user changes the preview color. | |
opacity? |
|
|
Specifies whether we should display the opacity slider to allow selection of transparency. |
showButtons? |
|
Specifies whether action buttons will be rendered in the footer. | |
showClearButton? |
|
Specifies whether clear button will be rendered in the header. | |
showPreview? |
|
Specifies whether preview and revert color boxes will be rendered in the header. | |
size? |
|
|
Configures the The available options are:
|
style? |
|
Sets additional CSS styles to the FlatColorPicker. | |
tabIndex? |
|
Sets the | |
value? |
|
Sets the color value. | |
view? |
|
Deprecated. Use | |
views? |
|
|
Specifies the views that will be rendered. By default both the gradient and palette views will be rendered. |