From aee3306c2ba398ac9ccb048806e0b3b2cc23f717 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 21 May 2025 19:26:41 +0200 Subject: [PATCH] feat: proper button with loading --- web/src/components/ui/button.tsx | 42 +++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsx index 523c806..01aab75 100644 --- a/web/src/components/ui/button.tsx +++ b/web/src/components/ui/button.tsx @@ -3,17 +3,53 @@ import type { ButtonHTMLAttributes, FC, ReactNode } from "react"; interface ButtonProps extends ButtonHTMLAttributes { children: ReactNode; className?: string; + loading?: boolean; } -export const Button: FC = ({ children, className, ...props }) => { +export const Button: FC = ({ + children, + className, + loading, + ...props +}) => { return ( ); };