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

Function TextArea

starters/docs/src/TextField.tsx:39–59  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  placeholder,
  inputRef,
  ...props
}: TextFieldProps<HTMLTextAreaElement>)

Source from the content-addressed store, hash-verified

37}
38
39export function TextArea({
40 label,
41 description,
42 errorMessage,
43 placeholder,
44 inputRef,
45 ...props
46}: TextFieldProps<HTMLTextAreaElement>) {
47 return (
48 <AriaTextField {...props}>
49 <Label>{label}</Label>
50 <AriaTextArea
51 ref={inputRef}
52 className="react-aria-TextArea inset"
53 placeholder={placeholder}
54 />
55 {description && <Description>{description}</Description>}
56 <FieldError>{errorMessage}</FieldError>
57 </AriaTextField>
58 );
59}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected