mp-product-card-react-typescript
Version:
This is a deploy test package to NPM
14 lines (13 loc) • 632 B
TypeScript
import React from 'react';
import { InitialValues, onChangeArgs, Product, ProductCardHandlers, ProductContextProps } from '../interfaces/interfaces';
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 ProductContext: React.Context<ProductContextProps>;
export declare const ProductCard: ({ children, className, initialValues, style, onChange, product, value, }: Props) => JSX.Element;