Used to select colors from a color area.
import { ColorInput } from '@fintech-sandpit/ui/react';
const [color, setColor] = useState('#000000');
import { ColorInput } from '@fintech-sandpit/ui/vue';
const color = ref('#000000');
| Name | Type | Default | Description |
|---|
value | Color | — | The value of the password field |
defaultValue | Color | — | The default value of the password field |
size | Size | md | The size of the password field |
label | string | — | The label of the password field |
name | string | color | The name of the password field |
required | boolean | false | Whether the password field is required |
readOnly | boolean | false | Whether the password field is read only |
disabled | boolean | false | Whether the password field is disabled |
| Name | Type | Default | Description |
|---|
model-value | Color | — | The value of the password field 1 |
default-value | Color | — | The default value of the password field |
size | Size | md | The size of the password field |
label | string | — | The label of the password field |
name | string | color | The name of the password field |
required | boolean | false | Whether the password field is required |
read-only | boolean | false | Whether the password field is read only |
disabled | boolean | false | Whether the password field is disabled |
- Can be used with the
v-model directive for two-way binding.
| Name | Type | Description |
|---|
onChange | (value: Color) => void | Callback fired when the value changes |
| Name | Payload | Description |
|---|
update:model-value | Color | Event emitted when the value changes |
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
See Color type definition for more information.