pouncejs
Version:
A collection of UI components from Panther labs
27 lines (26 loc) • 897 B
TypeScript
import { AbstractButtonProps } from '../AbstractButton';
import { ButtonProps } from './Button';
import { Theme } from '../../theme';
declare type ThemeColor = keyof Theme['colors'];
declare type UseButtonStylesProps = Required<Pick<ButtonProps, 'variantColor' | 'variant' | 'size'>>;
export declare const getSolidButtonStyles: (theme: Theme, variantColor: ThemeColor) => {
transition: string;
borderRadius: "medium";
border: string;
borderColor: string;
backgroundColor: string;
_hover: {
backgroundColor: string;
borderColor: string;
};
_focus: {
backgroundColor: string;
borderColor: string;
};
_active: {
backgroundColor: string;
borderColor: string;
};
};
declare const useButtonStyles: ({ variantColor, variant, size, }: UseButtonStylesProps) => AbstractButtonProps;
export default useButtonStyles;