UNPKG

gip-product-card

Version:
14 lines (13 loc) 651 B
import React, { CSSProperties } from 'react'; import { InitialValues, Product, ProductCardHandlers, ProductContextProps, onChangeArgs } 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: onChangeArgs) => void; value?: number; initialValues?: InitialValues; } export declare const ProductCard: ({ product, children, className, style, onChange, value, initialValues, }: Props) => React.JSX.Element;