Allow using classname and class

This commit is contained in:
Fabian Stamm
2020-04-10 20:08:21 +02:00
parent 4cae31a72d
commit 20aaa80626
11 changed files with 51 additions and 17 deletions

View File

@ -5,7 +5,12 @@ export default function IconButton({
...props
}: JSX.HTMLAttributes<HTMLButtonElement>) {
return (
<button className={"ht-btn ht-btn-icon " + (className || "")} {...props}>
<button
className={
"ht-btn ht-btn-icon " + (className || "") + (props.class || "")
}
{...props}
>
{children}
</button>
);