UNPKG

codeslator-product-card

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