1 | import * as React from "react";
|
2 | import { PseudoBoxProps } from "../PseudoBox";
|
3 | import { Omit } from "../common-types";
|
4 |
|
5 | interface 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 |
|
28 | export type CloseButtonProps = ICloseButton & Omit<PseudoBoxProps, "size">;
|
29 |
|
30 | declare const CloseButton: React.FC<CloseButtonProps>;
|
31 |
|
32 | export default CloseButton;
|