cornell-glue-ui
Version:
Glue UI is Cornell WebDev's centralized UI component library. It implements our design system and serves as a single source of truth for React components used within our projects.
24 lines (23 loc) • 855 B
TypeScript
import React from 'react';
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: 'contained' | 'text' | 'outlined';
size?: 'default' | 'small';
background?: string;
hoverBackground?: string;
color?: string;
disabled?: boolean;
startIcon?: React.ReactNode;
endIcon?: React.ReactNode;
}
export declare const Button: ({ children, variant, ...rest }: IButtonProps) => JSX.Element;
export interface IButtonCoreProps {
variant: IButtonProps['variant'];
size: IButtonProps['size'];
background: IButtonProps['background'];
hoverBackground: IButtonProps['hoverBackground'];
color: IButtonProps['color'];
startIcon: IButtonProps['startIcon'];
endIcon: IButtonProps['endIcon'];
}
export declare const CoreButton: any;
export default Button;