UNPKG

@cbinsights/fds

Version:
21 lines (20 loc) 676 B
import { GroupButtonProps } from './GroupButton'; declare type ButtonModificationProps = { key: string | number; value: number; onClick: any; }; declare type CombinedButtonProps = GroupButtonProps & ButtonModificationProps; export interface ButtonGroupProps { /** * Each object in array renders a GroupButton, and (generally) passes all it's values through * as props to GroupButton */ buttons: CombinedButtonProps[]; /** * Fires when any Button is clicked in ButtonGroup */ onChange?: any; } declare const ButtonGroup: ({ buttons, onChange, ...restBtnGroup }: ButtonGroupProps) => JSX.Element; export default ButtonGroup;