nerm-product-card
Version:
This is a testing deploy packlage on NPM.
14 lines (13 loc) • 648 B
TypeScript
import React, { JSX } from "react";
import { ProductContextProps, Product, onChangeArgs, InitialValues, ProductCardhandlers } from "../interfaces/ProductInterfaces";
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;