UNPKG

zaf-product-card

Version:
14 lines (13 loc) 652 B
import React, { CSSProperties } from "react"; import { Product, onChangeArgs, ProductContextProps, InitialValues, ProductCardHandlers } from "../interfaces/ProductInterfaces"; 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 ProductContext: React.Context<ProductContextProps>; export declare const ProductCard: ({ children, product, className, style, value, initialValues, onChange, }: Props) => JSX.Element;