diff --git a/frontend/src/library/button.tsx b/frontend/src/library/button.tsx
index d9f5396..b48a166 100644
--- a/frontend/src/library/button.tsx
+++ b/frontend/src/library/button.tsx
@@ -8,10 +8,49 @@
type ButtonProps = {
onClick: () => void;
children: React.ReactNode;
+ size?:'small' |'medium' | 'large';
+ textColor?: string;
+ bgColor?: string;
+ borderColor?: string;
+ shape?:'rectangle' | 'rounded' | 'pills';
+
+};
+
+
+
+function Button({ children, onClick,size="medium",bgColor="bg-blue-500",textColor="text-white",borderColor=textColor,shape }: ButtonProps) {
+
+const getSizeClass = () => {
+ switch (size) {
+ case 'small':
+ return 'px-2 py-1 text-sm';
+ case 'large':
+ return 'px-4 py-2 text-lg';
+ case 'medium':
+ return 'px-3 py-2 text-base';
+ default:
+ return 'px-3 py-2 text-base';
+ }
+};
+
+const getShapeClass = () => {
+ switch (shape) {
+ case 'rounded':
+ return 'rounded-lg';
+ case 'rectangle':
+ return 'rounded-none';
+ case 'pills':
+ return 'rounded-full';
+ default:
+ return 'rounded-lg';
+ }
};
-function Button({ onClick, children }: ButtonProps) {
- return ;
+const shapeClass = getShapeClass();
+const sizeClass = getSizeClass();
+
+
+ return ;
}
export default Button;