AgnosticUI / agnosticui

AgnosticUI is a set of UI primitives that start their lives in clean HTML and CSS. These standards compliant components are then copied to our framework implementations in: React, Vue 3, Angular, and Svelte.
https://agnosticui.com
Apache License 2.0
723 stars 47 forks source link

[react] Are there any plans to add "forwardRefs" to your Input element? #240

Open deleteman opened 2 years ago

deleteman commented 2 years ago

Hi, I'm testing the library and I'm loving it, but I was unable to capture the value of input fields using refs in React. If I didn't see any specific attributes that would forward the ref directly into the input element to allow me to read the content of the field later on. So I was wondering if this is by design or if you were planning on adding some kind of support for this in the future?

Thanks!

roblevintennis commented 2 years ago

You're not able to support your use case by simply listening for change events?

Typically I've used forwarded refs when I really need low level control of an otherwise "controlled component" and it always adds complexity so I'm careful to not lean on that often.

Again, would love to better understand your needs.

klaseca commented 1 year ago

For example, you can not currently use react-hook-form library with agnosticui