@cbinsights/fds
Version:
Form: A design system by CB Insights
21 lines (20 loc) • 676 B
TypeScript
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;