@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
28 lines (27 loc) • 851 B
TypeScript
export interface ButtonAlertProps {
/** The text that will display on the button alert. */
text?: string;
/** Optional class(es) to pass to the button alert */
classes?: string;
/** An optional onClick function */
onClick?(...args: unknown[]): unknown;
/** Text for showing alert */
showText: string;
/** Text for hiding alert */
hideText: string;
/** Adds is-open class to button if true. */
isOpen?: boolean;
/** HTML `<button>` 'type' attribute */
type?: "submit" | "reset" | "button" | "";
/** Theme of the button */
theme?: "" | "c-primary" | "c-highlight" | "c-gray-dark" | "c-black";
}
declare const ButtonAlert: {
(props: ButtonAlertProps): any;
defaultProps: {
isOpen: boolean;
type: string;
theme: string;
};
};
export default ButtonAlert;