javimcl-product-card
Version:
Este es un paquete de despliegue en NPM
15 lines (14 loc) • 668 B
TypeScript
import React, { CSSProperties } from 'react';
import { InitialValues, onCahngeArgs, Product, ProductCardHandlers, ProductContextProps } from '../interfaces/interfaces';
export declare const ProductContext: React.Context<ProductContextProps>;
export interface Props {
product: Product;
children: (args: ProductCardHandlers) => JSX.Element;
className?: string;
style?: CSSProperties;
onChange?: (args: onCahngeArgs) => void;
value?: number;
initialValues?: InitialValues;
maxCount?: number;
}
export declare const ProductCard: ({ children, product, className, style, onChange, value, initialValues }: Props) => JSX.Element;