ColorField
An input field which displays a color picker.
Importing
1
import { ColorField } from '@infinityfx/fluid';Usage
With annotation
API reference
ColorField Props
value?
string
Controlled hex color value.
defaultValue?
string
Default hex color value for uncontrolled usage.
onChange?
(value: string) => void
size?
'xsm' | 'sml' | 'med' | 'lrg'
'med'
variant?
'default' | 'minimal'
'default'
round?
boolean
false
icon?
React.ReactNode
Icon element displayed on the left side of the field.
error?
any
Marks the field as invalid when truthy.
disabled?
boolean
false