carpooluikit
Version:
carpool finance uikit
29 lines (28 loc) • 770 B
TypeScript
import { HTMLAttributes } from "react";
import { SpaceProps } from "styled-system";
import { Colors } from "../../theme/types";
export interface CardRibbonProps {
variantColor?: keyof Colors;
text: string;
ribbonPosition?: "right" | "left";
}
export declare type CardTheme = {
background: string;
boxShadow: string;
boxShadowActive: string;
boxShadowSuccess: string;
boxShadowWarning: string;
cardHeaderBackground: {
default: string;
blue: string;
violet: string;
};
dropShadow: string;
};
export interface CardProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
isActive?: boolean;
isSuccess?: boolean;
isWarning?: boolean;
isDisabled?: boolean;
ribbon?: React.ReactNode;
}