1 | import * as React from "react";
|
2 | import { ButtonProps } from "../Button";
|
3 | import { Omit } from "../common-types";
|
4 | import { Icons } from "../theme/icons";
|
5 |
|
6 | type _ButtonProps = Omit<
|
7 | ButtonProps,
|
8 | | "loadingText"
|
9 | | "isFullWidth"
|
10 | | "leftIcon"
|
11 | | "rightIcon"
|
12 | | "iconSpacing"
|
13 | | "children"
|
14 | >;
|
15 |
|
16 | interface IIconButton {
|
17 | |
18 |
|
19 |
|
20 | icon?: Icons | React.ComponentType;
|
21 | |
22 |
|
23 |
|
24 | isRound?: boolean;
|
25 | |
26 |
|
27 |
|
28 | "aria-label": string;
|
29 | }
|
30 |
|
31 | export type IconButtonProps = IIconButton & _ButtonProps;
|
32 |
|
33 | declare const IconButton: React.FC<IconButtonProps>;
|
34 |
|
35 | export default IconButton;
|