react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
28 lines (27 loc) • 927 B
TypeScript
import React from "react";
import "./Ui89Button.css";
import "../style/typo.css";
import "../style/chosen-theme.css";
import "../style/reset.css";
import { Ui89Theme } from "../theme";
export declare enum Ui89ButtonPropsSize {
standard = "standard",
square = "square"
}
export declare enum Ui89ButtonPropsType {
submit = "submit",
reset = "reset"
}
export interface Ui89ButtonProps {
theme?: Ui89Theme | keyof typeof Ui89Theme;
size?: Ui89ButtonPropsSize | keyof typeof Ui89ButtonPropsSize;
block?: boolean;
onClick?: () => void | Promise<void>;
href?: string;
children: React.ReactNode;
autoDisableOnClick?: boolean;
disabled?: boolean;
activated?: boolean;
type?: keyof typeof Ui89ButtonPropsType;
}
export declare function Ui89Button({ theme, size, type, block, onClick, href, children, autoDisableOnClick, disabled, activated, }: Ui89ButtonProps): React.JSX.Element;