norma-library
Version:
Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.
31 lines (30 loc) • 798 B
TypeScript
import { iconsSVG } from '../components/Svgs';
import { IconScale } from '../types';
import { SvgIconComponent } from '@mui/icons-material';
import { ReactNode } from 'react';
export interface ProductCardProps {
onClick?: () => void;
disabled?: boolean;
color: string;
title: string;
description: string;
hasBorder?: boolean;
favorite?: {
flagged: boolean;
onFlag: () => any;
};
icon?: {
bgColor?: string;
iconColor?: string;
iconName?: keyof typeof iconsSVG | SvgIconComponent | string;
iconWidth?: string | number;
iconHeight?: string | number;
scale?: IconScale;
};
}
export interface BgIconProps {
$bColor: string;
children?: ReactNode;
className?: string;
color: string;
}