UNPKG

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.

18 lines 849 B
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"; interface CommonProps { as?: "button" | "a" | React.ElementType; variant?: Variant; size?: Size; icon?: IconName; iconPosition?: "left" | "right"; label?: string; loading?: boolean; disabled?: boolean; } export type ButtonProps = CommonProps & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>; export declare function Button({ as: Tag, variant, size, icon, iconPosition, label, loading, disabled, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=button.d.ts.map