@impossiblefinance/uikit
Version:
Set of UI components for impossible projects
24 lines (23 loc) • 659 B
TypeScript
import { HTMLAttributes } from 'react';
import { SpaceProps } from 'styled-system';
import { Colors } from '../../theme/types';
export interface CardRibbonProps {
variantColor?: keyof Colors;
text: string;
}
export declare type CardTheme = {
background: string;
boxShadow: string;
boxShadowActive: string;
boxShadowSuccess: string;
boxShadowWarning: string;
cardHeaderBackground: string;
dropShadow: string;
};
export interface CardProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
isActive?: boolean;
isSuccess?: boolean;
isWarning?: boolean;
isDisabled?: boolean;
ribbon?: React.ReactNode;
}