goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
63 lines • 1.95 kB
TypeScript
import { default as React, ReactNode } from 'react';
export interface ButtonGroupProps {
value: string;
exclusive?: boolean;
onChange: (event: React.MouseEvent<HTMLElement>, newValue: string | null) => void;
children: React.ReactNode;
styles?: ButtonStyles;
}
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
export interface ButtonStyles {
disabled?: boolean;
theme?: string;
variant?: string;
width?: string;
minWidth?: string;
maxWidth?: string;
height?: string;
minHeight?: string;
padding?: string;
margin?: string;
marginTop?: string;
marginBottom?: string;
marginLeft?: string;
marginRight?: string;
fontSize?: string;
fontWeight?: string | number;
fontFamily?: string;
letterSpacing?: string;
textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase';
borderRadius?: string;
borderWidth?: string;
borderColor?: string;
border?: string;
boxShadow?: string;
iconLocation?: 'left' | 'right' | 'above';
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
backgroundColor?: string;
background?: string;
color?: string;
borderRightWidth?: string;
borderRightStyle?: string;
borderRightColor?: string;
outline?: string | boolean;
hoverBackgroundColor?: string;
hoverBorderColor?: string;
hoverTransform?: string;
hoverBoxShadow?: string;
textShadow?: string;
flex?: string | number;
opacity?: number | string;
cursor?: string;
size?: string;
}
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
text?: string;
icon?: ReactNode;
styles?: ButtonStyles;
selected?: boolean;
value?: string;
}
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
export default Button;
//# sourceMappingURL=index.d.ts.map