UNPKG

jeme-product-card

Version:
15 lines (14 loc) 673 B
import React, { CSSProperties, JSX } from 'react'; import { InitialValues, OnChangeArgs, Product, ProductCardHandlers, ProductContextProps } from '../interfaces/interfaces'; export declare const ProductContext: React.Context<ProductContextProps>; export interface Props { children?: (args: ProductCardHandlers) => JSX.Element; className?: string; initialValues?: InitialValues; onChange?: (args: OnChangeArgs) => void; product: Product; style?: CSSProperties; value?: number; } declare const ProductCard: ({ children, className, initialValues, onChange, product, style, value, }: Props) => JSX.Element; export default ProductCard;