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)}}
/>
Metadata
Metadata
Assignees
Labels
No labels