dnr-product-card
Version:
This is a test deployment package to npm
14 lines (13 loc) • 646 B
TypeScript
import React, { CSSProperties } from 'react';
import { Product, ProductContextProps, 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?: CSSProperties;
onChange?: (args: OnChangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export declare const ProductCard: ({ children, onChange, product, value, initialValues, className, style, }: Props) => JSX.Element;