260703_01_FST: First Commit
This commit is contained in:
17
.tooling/components/ui/button.tsx
Normal file
17
.tooling/components/ui/button.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { forwardRef, type ButtonHTMLAttributes } from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export type ButtonVariant = "default" | "outline" | "ghost" | "secondary" | "destructive" | "link";
|
||||
export type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm";
|
||||
|
||||
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
variant?: ButtonVariant;
|
||||
size?: ButtonSize;
|
||||
}
|
||||
|
||||
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
({ className, variant = "default", size = "default", ...props }, ref) => (
|
||||
<button ref={ref} data-variant={variant} data-size={size} className={cn(className)} {...props} />
|
||||
)
|
||||
);
|
||||
Button.displayName = "Button";
|
||||
Reference in New Issue
Block a user