@ducor/react
Version:
admin template ui interface
19 lines (18 loc) • 687 B
TypeScript
import React from "react";
export type ButtonProps = {
variant?: "primary" | "secondary" | "success" | "danger" | "warning" | "black" | "transparent" | "notification" | "info" | "gray";
size?: "xs" | "sm" | "md" | "lg";
children: React.ReactNode;
disabled?: boolean;
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
type?: "button" | "submit" | "reset";
className?: string;
title?: string;
};
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
export declare const BtnClose: React.FC<{
onClose: () => void;
className?: string;
title?: string;
}>;
export default Button;