MCPcopy Index your code
hub / github.com/adobe/react-spectrum / TextField

Function TextField

starters/tailwind/src/TextField.tsx:29–40  ·  view source on GitHub ↗
({label, description, errorMessage, ...props}: TextFieldProps)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected