creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
https://material-tailwind.com/
MIT License
3.48k stars 304 forks source link

Button expects a placeholder prop #640

Closed luigimorel closed 3 months ago

luigimorel commented 3 months ago

Version: 2.1.9

I'm a first time user and this is the error that I'm getting Property 'placeholder' is missing in type '{ children: string; }' but required in type 'Pick<ButtonProps, "children" | "color" | "disabled" | "translate" | "form" | "slot" | "style" | "title" | "onChange" | "onClick" | "className" | "value" | "key" | "autoFocus" | ... 259 more ... | "loading">'

When I check the lib's source code, in the file material-tailwind/react/components/Button.index.d.ts, a placeholder prop is needed

Screenshot from 2024-02-23 21-58-53

luigimorel commented 3 months ago

Issue has been addresseshere