adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.57k stars 1.09k forks source link

Update tooling to better understand Textfield types #2566

Open snowystinger opened 2 years ago

snowystinger commented 2 years ago

🙋 Feature Request

We updated our types to better choose between textarea and input in useTextfield. Our documentation can't quite handle it. We need to update our docs to more clearly display our types.

🤔 Expected Behavior

For example, useTextField<T = DefaultElementType> should be useTextField<T = 'input'>

LFDanLu commented 2 years ago

As per discussion: it maybe enough to remove DefaultElementType and replace with 'input'