Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refs not part of the Typescript types #185

Open
5 of 6 tasks
came opened this issue Nov 22, 2023 · 1 comment
Open
5 of 6 tasks

refs not part of the Typescript types #185

came opened this issue Nov 22, 2023 · 1 comment
Labels
React Issue with Tailwind Mobile React

Comments

@came
Copy link

came commented Nov 22, 2023

Check that this is really a bug

  • 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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • 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
@came came added the React Issue with Tailwind Mobile React label Nov 22, 2023
@samyarkd
Copy link

it would be nice if this get fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React Issue with Tailwind Mobile React
Projects
None yet
Development

No branches or pull requests

2 participants