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 want to preserve the Props from the base JSX button element, so whenever I use my custom styled-component it acts like a normal button with styles and some custom props on top of it.
Sorry, this is likely a question for Stackoverflow / Spectrum or something you'll need to pick up with DefinitelyTyped as we don't actively maintain the typings for styled-components in-repo anymore. It looks though as you'd want to make an alias for type ElementProps<T> = Exclude<keyof ComponentProps<T>, 'key' | 'ref'> or use ComponentPropsWithoutRef if it's exposed.
I want to preserve the Props from the base JSX button element, so whenever I use my custom styled-component it acts like a normal button with styles and some custom props on top of it.
here's my implementation:
Reproduction
https://codesandbox.io/s/quirky-voice-gm2od
The text was updated successfully, but these errors were encountered: