You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm not sure if this is already mentioned (searched through the issues):
I use a custom Button component with additional props (like: size, variant, block).
When using the <Button> i can pass them in, it works but gives me an ugly typescript error.
{({ Field, Button, Errors, register })=>(<FormContainersize="md"><ErrorsclassName="mb-8"/><Fieldname="userName"/><Fieldname="password">{({ Label, Errors })=>(<><Label/><PasswordInput{...register('password')}/><Errors/></>)}</Field><Fieldname="rememberMe"/><Buttonblock/> // ^ -- throws: Property 'block' does not exist on type 'IntrinsicAttributes & ClassAttributes<HTMLButtonElement> & ButtonHTMLAttributes<HTMLButtonElement>'<divclassName="mt-4 text-center"><span>Don't have an account yet? </span></div></FormContainer>)}
Is there a way of changing the type of the button throughout the project?
Best Regards
The text was updated successfully, but these errors were encountered:
Hey, @ReptoxX! We're figuring out how to do this, but it will likely be a v2 API if we find a good solution. We're keeping track of the discussion on #121 (which I couldn't help but notice it's a mirror of #212 😅 ).
Hello,
i'm not sure if this is already mentioned (searched through the issues):
I use a custom Button component with additional props (like: size, variant, block).
When using the
<Button>
i can pass them in, it works but gives me an ugly typescript error.Is there a way of changing the type of the button throughout the project?
Best Regards
The text was updated successfully, but these errors were encountered: