-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Button as a link error #1107
Labels
needs info
Further information is requested
Comments
@mnakhli version? |
Duplicate of #1002 |
any updates on this? |
nigellima
added a commit
to gistia/flowbite-react
that referenced
this issue
Jan 24, 2024
`as` prop was throwing TS errors when using Next Link component. Now this correctly infers the type from any component passed to the `as` prop fix themesberg#1002 fix themesberg#1107
1 task
SutuSebastian
pushed a commit
that referenced
this issue
Jan 24, 2024
…tton `as` prop (#1244) * fix(button): correctly infer type from `as` prop `as` prop was throwing TS errors when using Next Link component. Now this correctly infers the type from any component passed to the `as` prop fix #1002 fix #1107 * fix(dropdown-item): applied the generic types to DropdownItem and also wraps it with a forwardRef * docs(button): removed now-unnecessary @ts-expect-error comments * fix(button): replaced use of old genericForwardRef
abdulbasithqb
pushed a commit
to abdulbasithqb/flowbite-react
that referenced
this issue
Jan 31, 2024
…tton `as` prop (themesberg#1244) * fix(button): correctly infer type from `as` prop `as` prop was throwing TS errors when using Next Link component. Now this correctly infers the type from any component passed to the `as` prop fix themesberg#1002 fix themesberg#1107 * fix(dropdown-item): applied the generic types to DropdownItem and also wraps it with a forwardRef * docs(button): removed now-unnecessary @ts-expect-error comments * fix(button): replaced use of old genericForwardRef
abdulbasithqb
pushed a commit
to abdulbasithqb/flowbite-react
that referenced
this issue
Jan 31, 2024
…tton `as` prop (themesberg#1244) * fix(button): correctly infer type from `as` prop `as` prop was throwing TS errors when using Next Link component. Now this correctly infers the type from any component passed to the `as` prop fix themesberg#1002 fix themesberg#1107 * fix(dropdown-item): applied the generic types to DropdownItem and also wraps it with a forwardRef * docs(button): removed now-unnecessary @ts-expect-error comments * fix(button): replaced use of old genericForwardRef
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use the button as a link, I get an error:
I proceeded exactly according to the documentation.
The text was updated successfully, but these errors were encountered: