thon-product-card
Version:
este es mi paquete de pruebas para subir a NPM.
14 lines (13 loc) • 641 B
TypeScript
import React from 'react';
import { InitialValue, OnChangeArgs, Product, ProductCartHandlers, ProductContextProps } from '../interfaces/interfaces';
export declare const ProductContext: React.Context<ProductContextProps>;
export interface Props {
product: Product;
children: (args: ProductCartHandlers) => React.JSX.Element;
className?: string;
style?: React.CSSProperties;
onChange?: (args: OnChangeArgs) => void;
value?: number;
initialValues?: InitialValue;
}
export declare const ProductCard: ({ product, children, className, style, onChange, value, initialValues }: Props) => React.JSX.Element;