UNPKG

mbari-product-card

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