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.

20 lines 817 B
import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react"; import { type IconName } from "../icon/icon"; export type Variant = "filled" | "outlined" | "text" | "toned" | "lightOnContent" | "darkOnContent"; type Size = "xSmall" | "small" | "medium"; type ButtonAsButton = ButtonHTMLAttributes<HTMLButtonElement> & { href?: string; }; type ButtonAsLink = AnchorHTMLAttributes<HTMLAnchorElement> & { href?: string; }; interface CommonProps { variant?: Variant; size?: Size; icon: IconName; disabled?: boolean; } type ButtonProps = CommonProps & (ButtonAsButton | ButtonAsLink); export declare function ButtonIcon({ href, variant, icon, disabled, size, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=button-icon.d.ts.map