({
id,
defaultValue,
required,
disabled = false,
readOnly = false,
onChange,
}: Props)
| 11 | } |
| 12 | |
| 13 | export default function ColorInput({ |
| 14 | id, |
| 15 | defaultValue, |
| 16 | required, |
| 17 | disabled = false, |
| 18 | readOnly = false, |
| 19 | onChange, |
| 20 | }: Props) { |
| 21 | return ( |
| 22 | <> |
| 23 | <input |
| 24 | type="color" |
| 25 | id={id} |
| 26 | className={styles.input} |
| 27 | defaultValue={defaultValue} |
| 28 | required={required} |
| 29 | disabled={disabled} |
| 30 | readOnly={readOnly} |
| 31 | onChange={onChange} |
| 32 | /> |
| 33 | <span className={styles.text}>Hex Color Code: {defaultValue}</span> |
| 34 | </> |
| 35 | ); |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected