-
-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
Hey like the title Typescript is not working with rest props and spread operator.
Example:
export function ColorPicker({...rest}) {
return <HexColorPicker className={"your-component"} {...rest}/>;
}If u use this component typescript cant figure out the types.
Example usage:
<ColorPicker color={backColor} onChange={(color) => {
setBackColor(color)}}
/>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels