konsta
konsta copied to clipboard
refs not part of the Typescript types
Check that this is really a bug
- [X] I confirm
Reproduction link
https://stackblitz.com/edit/konsta-react-5jawzd?file=App.tsx
Bug description
Almost all konsta components forward refs and besides that even use useImperativeHandle 😍 However, when I add a ref prop to a component I get the TS error:
Property 'ref' does not exist on type 'IntrinsicAttributes & NotificationProps'.
Expected Behavior
I guess the refs need to be part of the build-react-types.js script
Actual Behavior
No response
Konsta UI version
3.1.1
Platform/Target and Browser Versions
macOS chrome
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [X] Make sure this is a Konsta UI issue and not a framework-specific issue
Would you like to open a PR for this bug?
- [ ] I'm willing to open a PR