Closed R4VANG3R closed 4 years ago
Adds Exports to all the Props interfaces to allow extending them.
Props
import { ContextMenuProps } from "react-contextmenu"; interface MyContextMenuProps extends ContextMenuProps {}
I use this for styling the components with styled-components.
For example like this:
export interface MyContextMenuProps extends IProps, ContextMenuProps {} export const ContextMenu = (props: MyContextMenuProps) => { const { ...rest } = props; return <StyledContextMenu {...rest} />; };
As this wraps the component I need to re-expose the Props. Right now this isn't possible as they're not exposed through the library.
Adds Exports to all the
Props
interfaces to allow extending them.I use this for styling the components with styled-components.
For example like this:
As this wraps the component I need to re-expose the Props. Right now this isn't possible as they're not exposed through the library.