sate-lib
Version:
A lightweight and modular React component library designed for modern web interfaces. **SATE Lib** powers the [sate.menu](https://sate.menu) platform with reusable, scalable, and themeable UI components.
23 lines • 918 B
TypeScript
import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
import { type IconName } from "../icon/icon";
export type Variant = "filled" | "outlined" | "text" | "toned" | "lightOnContent" | "darkOnContent";
type Size = "small" | "medium" | "large";
type ButtonAsButton = ButtonHTMLAttributes<HTMLButtonElement> & {
href?: string;
};
type ButtonAsLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
href?: string;
};
interface CommonProps {
variant?: Variant;
size?: Size;
icon?: IconName;
iconPosition?: "left" | "right";
label?: string;
loading?: boolean;
disabled?: boolean;
}
type ButtonProps = CommonProps & (ButtonAsButton | ButtonAsLink);
export declare function Button({ href, variant, size, icon, iconPosition, label, loading, disabled, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=button.d.ts.map