UNPKG

690 BTypeScriptView Raw
1import * as React from "react";
2import { PseudoBoxProps } from "../PseudoBox";
3import { Omit } from "../common-types";
4
5interface ICloseButton {
6 /**
7 * The size of the close button
8 */
9 size?: "lg" | "md" | "sm";
10 /**
11 * If `true`, the close button will be disabled
12 */
13 isDisabled?: boolean;
14 /**
15 * The color of the close icon
16 */
17 color?: string;
18 /**
19 * An accessible label for the close button
20 */
21 "aria-label"?: string;
22 /**
23 * The type of button (defaults to button)
24 */
25 type?: string;
26}
27
28export type CloseButtonProps = ICloseButton & Omit<PseudoBoxProps, "size">;
29
30declare const CloseButton: React.FC<CloseButtonProps>;
31
32export default CloseButton;