FloatLabel: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & FloatLabelProps & RefAttributes<HTMLSpanElement>'.ts(2559) #6438
Labels
Type: Bug
Issue contains a defect related to a specific component.
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
When using the
<FloatLabel />
as documented TypeScript will throw the the errorType '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & FloatLabelProps & RefAttributes<HTMLSpanElement>'.ts(2559)
which prevents a sucessful application build.Can be reproduced using the officially documented example for the component (linked below).
Reproducer
https://stackblitz.com/edit/bphtke?file=src%2FApp.tsx
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
<FloatLabel />
Expected behavior
<FloatLabel />
should not error here and/ or proper usage should be correctly documented.The text was updated successfully, but these errors were encountered: