UNPKG

raulrobi-product-card

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