fix spelling typo in button props destructuring

This commit is contained in:
Matthew Russell 2022-03-07 12:45:39 -08:00
parent 682ea8b0ab
commit ac3e10a0a4

View File

@ -126,12 +126,12 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
className, className,
prependIconName, prependIconName,
appendIconName, appendIconName,
...prosp ...props
}, },
ref ref
) => { ) => {
return ( return (
<button ref={ref} className={getClassName(className, variant)} {...prosp}> <button ref={ref} className={getClassName(className, variant)} {...props}>
{getContent(children, prependIconName, appendIconName)} {getContent(children, prependIconName, appendIconName)}
</button> </button>
); );