import React from 'react' ; import { FormField } from '@workday/canvas-kit-react/form-field' ; import { ColorInput } from '@workday/canvas-kit-react/color-picker' ; export const Error = ( ) => { const [ value , setValue ] = React . useState ( '' ) ; const handleChange = ( event ) => { setValue ( event . target . value ) ; } ; return ( < FormField error = { FormField . ErrorType . Error } hintId = "hint-error" hintText = "Please select a background color." label = "Background Color" > < ColorInput onChange = { handleChange } value = { value } / > < /FormField>); } ;