Files
MattrixwvReactComponents/lib/types/ButtonTypes.ts

17 lines
532 B
TypeScript

import type { ButtonHTMLAttributes, Ref } from "react";
export type ButtonRounding = "none" | "sm" | "md" | "lg" | "full";
export type ButtonShape = "rectangle" | "square";
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
export type ButtonVariant = "standard" | "outline" | "ghost" | "outline-ghost" | "icon";
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>{
rounding?: ButtonRounding;
shape?: ButtonShape;
size?: ButtonSize;
variant?: ButtonVariant;
ref?: Ref<HTMLButtonElement>;
}