Update widgets

This commit is contained in:
Sacha Weatherstone
2022-09-22 23:06:49 +10:00
parent dcfd738c75
commit 781d782a70
11 changed files with 243 additions and 77 deletions
+4 -1
View File
@@ -13,6 +13,7 @@ export const IconButton = ({
variant = "primary",
icon,
disabled,
className,
...rest
}: IconButtonProps): JSX.Element => {
return (
@@ -23,7 +24,9 @@ export const IconButton = ({
: "bg-orange-100 text-orange-700 hover:bg-orange-200"
} ${
size === "sm" ? "h-8 w-8" : size === "md" ? "h-10 w-10" : "h-12 w-12"
} ${disabled ? "cursor-not-allowed bg-red-400 focus:ring-red-500" : ""}`}
} ${disabled ? "cursor-not-allowed bg-red-400 focus:ring-red-500" : ""} ${
className ?? ""
}`}
disabled={disabled}
{...rest}
>