ahv-product-card
Version:
This is a test package in order to deploy to NPM.
14 lines (13 loc) • 642 B
TypeScript
import React from 'react';
import { ProductContextProps, Product, onChangeArgs, InitialValuesProps, 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?: InitialValuesProps;
}
export declare const ProductCard: ({ children, product, className, style, onChange, value, initialValues, }: Props) => JSX.Element;