UNPKG

fc-component-react

Version:

``` <ProductCard product={ product } className="bg-dark text-white" initialValues={{ count: 6, maxCount: 10, }} > { ({ r

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