Missing class
prop on Button component fails Typescript complier
#1319
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
I am using Vue 3 with typescript. import a button and want to add class to change the color. Get ts complier fail.
sample code
This is from the doc link: https://primefaces.org/primevue/showcase/#/button
<Button label="Submit" class="p-button-secondary" />
error message:
TS2322: Type '{ label: string; class: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'class' does not exist on type 'IntrinsicAttributes & ButtonProps'.
Expected behavior
Complier pass and not crash the app.
From source code of primevue interface ButtonProps is missing
class
property?Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: