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

Function ColorField

starters/tailwind/src/ColorField.tsx:28–39  ·  view source on GitHub ↗
({label, description, errorMessage, ...props}: ColorFieldProps)

Source from the content-addressed store, hash-verified

26}
27
28export function ColorField({label, description, errorMessage, ...props}: ColorFieldProps) {
29 return (
30 <AriaColorField
31 {...props}
32 className={composeTailwindRenderProps(props.className, 'flex flex-col gap-1 font-sans')}>
33 {label && <Label>{label}</Label>}
34 <Input className={inputStyles} />
35 {description && <Description>{description}</Description>}
36 <FieldError>{errorMessage}</FieldError>
37 </AriaColorField>
38 );
39}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected