This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
Component Props
type incorrectly includes ref
#104
Labels
Props
type incorrectly includes ref
#104
Here this type extends
HTMLProps
instead ofHTMLAttributes
. This incorrectly makes the component think that it receives aref
type, which is incorrect.This comes into play in this situation:
The workaround:
Also, this is annoying:
This is due to indirection via
index.d.ts
.Would it be possible to import like so:
The text was updated successfully, but these errors were encountered: