ENCOA-260, ENCOA-259

This commit is contained in:
Carlos-Mesquita
2024-12-09 18:37:51 +00:00
parent 35d28fbff6
commit 7538392e44
12 changed files with 301 additions and 57 deletions

View File

@@ -12,6 +12,7 @@ interface Props {
padding?: string;
onClick?: () => void;
type?: "button" | "reset" | "submit";
customColor?: string;
}
export default function Button({
@@ -19,6 +20,7 @@ export default function Button({
variant = "solid",
disabled = false,
isLoading = false,
customColor = undefined,
className,
children,
type,
@@ -65,7 +67,7 @@ export default function Button({
className={clsx(
"rounded-full transition ease-in-out duration-300 disabled:cursor-not-allowed cursor-pointer select-none",
padding,
colorClassNames[color][variant],
customColor ? customColor : colorClassNames[color][variant],
className,
)}
disabled={disabled || isLoading}>