MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / ColorInput

Function ColorInput

apps/web/ui/ColorInput/index.tsx:13–36  ·  view source on GitHub ↗
({
  id,
  defaultValue,
  required,
  disabled = false,
  readOnly = false,
  onChange,
}: Props)

Source from the content-addressed store, hash-verified

11}
12
13export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected