MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ColorField

Function ColorField

starters/docs/src/ColorField.tsx:18–33  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  placeholder,
  ...props
}: ColorFieldProps)

Source from the content-addressed store, hash-verified

16}
17
18export function ColorField({
19 label,
20 description,
21 errorMessage,
22 placeholder,
23 ...props
24}: ColorFieldProps) {
25 return (
26 <AriaColorField {...props}>
27 {label && <Label>{label}</Label>}
28 <Input className="react-aria-Input inset" placeholder={placeholder} />
29 {description && <Description>{description}</Description>}
30 <FieldError>{errorMessage}</FieldError>
31 </AriaColorField>
32 );
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected