mirror of
https://github.com/CarGDev/pomodoro.git
synced 2025-09-18 17:38:28 +00:00

Initializes the project with necessary configurations, including Replit settings and a .gitignore file. It also introduces foundational UI components for the application, such as buttons, dialogs, and layout elements, likely for the Pomodoro timer application. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 59a5ae27-3c71-459b-b42f-fe14121bf9c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3007b6f6-d03b-45e1-9ed1-7ce8de18ea24/59a5ae27-3c71-459b-b42f-fe14121bf9c3/Uupe4F4
28 lines
733 B
TypeScript
28 lines
733 B
TypeScript
import { Button as ShadcnButton } from "@/components/ui/button";
|
|
import { cn } from "@/lib/utils";
|
|
import { forwardRef } from "react";
|
|
|
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
size?: "default" | "sm" | "lg" | "icon";
|
|
asChild?: boolean;
|
|
}
|
|
|
|
const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|
({ className, variant = "default", size = "default", ...props }, ref) => {
|
|
return (
|
|
<ShadcnButton
|
|
ref={ref}
|
|
className={cn(className)}
|
|
variant={variant}
|
|
size={size}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
);
|
|
|
|
Button.displayName = "Button";
|
|
|
|
export { Button };
|