ColorPicker
Pick a color.
Default
PreviewCode
Disabled
PreviewCode
Detail
PreviewCode
#000000
rgb(0, 0, 0)
hsl(0, 0%, 0%)
Props
Universal Props
Prop | Type | Accepted Values | Description | Default |
---|---|---|---|---|
showText | boolean | boolean | enable color detail. | false |
disabled | boolean | boolean | disabled the ColorPicker. | false |
onChange | () => void | () => void | Callback when color is selected,likeļ¼onChange={(value) => console.log('selected color:', value)} | - |