UNPKG

696 BTypeScriptView Raw
1import * as React from "react";
2import * as StyledSystem from "styled-system";
3import { IButton } from "../Button";
4import { BoxProps } from "../Box";
5import { Omit } from "../common-types";
6
7export interface IButtonGroup {
8 size?: IButton["size"];
9 color?: string;
10 variant?: IButton["variant"];
11 /**
12 * If `true`, the borderRadius of button that are direct children will be altered
13 * to look flushed together
14 */
15 isAttached?: boolean;
16 spacing?: StyledSystem.MarginRightProps["marginRight"];
17 children?: React.ReactNode;
18}
19
20export type ButtonGroupProps = IButtonGroup & Omit<BoxProps, "size">;
21
22declare const ButtonGroup: React.FC<ButtonGroupProps>;
23
24export default ButtonGroup;