UNPKG

retro-react

Version:

A React component library for building retro-style websites

29 lines (28 loc) 916 B
/// <reference types="react" /> import { ThemeUICSSObject } from 'theme-ui'; import { ButtonSize } from '../button/Button'; interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> { /** * The children of the ButtonGroup, ideally Button components. */ children?: React.ReactNode; /** * The size of the Buttons in the ButtonGroup. * * @default 'medium' */ size?: ButtonSize; sx?: ThemeUICSSObject; } /** * ButtonGroup is a component used to group related buttons. * It's recommended to pass Button components as children. * * @example * <ButtonGroup> * <Button variant="success">Submit</Button> * <Button variant="primary">Cancel</Button> * </ButtonGroup> */ export declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>; export {};