Button Not support for react "@types/react" 18.2.22
Type '{ disabled?: boolean | undefined; form?: string | undefined; formAction?: string | ((formData: FormData) => void) | undefined; formEncType?: string | undefined; formMethod?: string | undefined; ... 272 more ...; ref: ForwardedRef<...>; }' is not assignable to type 'SlotProps'.
Types of property 'children' are incompatible.
Type 'React.ReactNode' is not assignable to type 'import("/home/pilput/coding/typescript/pilput-dev/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode'.
Type 'ReactElement<any, string | JSXElementConstructor
same issue here
same
Any news on this?
Thank you for surfacing this issue. As a newcomer to Shadcn, I've been grappling with a straightforward button integration, and it's been quite frustrating.
It appears that discussion on this matter has gone stale. Could we possibly get some insight on this issue? Your help would be greatly appreciated. @shadcn
Solved:
- https://github.com/shadcn-ui/ui/issues/1978#issuecomment-1873574838
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.