@expofp/floorplan
Version:
Interactive floor plan library for expos and events
24 lines • 969 B
TypeScript
import "./Button.scss";
import React, { type ReactNode } from "react";
export type ButtonVariant = "primary" | "secondary" | "gray" | "gray-border" | "ghost" | "danger";
export type ButtonSize = "sm" | "md" | "lg";
export type ButtonTarget = "_self" | "_blank" | "_parent";
export interface ButtonProps {
children?: ReactNode;
inline?: boolean;
text?: string;
link?: string;
target?: ButtonTarget;
disabled?: boolean;
variant?: ButtonVariant;
size?: ButtonSize;
ariaLabel?: string;
title?: string;
withBadge?: boolean;
/** Whether the button should have a round/circular shape */
round?: boolean;
onClick?: (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
}
declare const Button: ({ children, inline, text, link, target, disabled, variant, size, ariaLabel, title, withBadge, round, onClick, }: ButtonProps) => React.JSX.Element;
export default Button;
//# sourceMappingURL=Button.d.ts.map