mm
This commit is contained in:
18
packages/ui-web-headless/componnets/button/Button.tsx
Normal file
18
packages/ui-web-headless/componnets/button/Button.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ComponentPropsWithRef, forwardRef, ReactNode } from "react";
|
||||
|
||||
export type ButtonState = {
|
||||
loading?: boolean;
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
export type ButtonProps = {
|
||||
size?: "xs" | "sm" | "md" | "lg";
|
||||
shape?: "circle" | "rounded" | "square";
|
||||
iconSvg?: ReactNode;
|
||||
iconOnly?: boolean;
|
||||
hideIcon?: boolean;
|
||||
loadingIconSvg?: ReactNode;
|
||||
} & ButtonState &
|
||||
ComponentPropsWithRef<"button">;
|
||||
|
||||
export const Button = forwardRef();
|
||||
Reference in New Issue
Block a user