({label, description, errorMessage, ...props}: TextFieldProps)
| 27 | } |
| 28 | |
| 29 | export 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 | } |
nothing calls this directly
no test coverage detected