UNPKG

gliscano-product-card

Version:

Product card is a test package, it was created with React and Typescript using State Initializer Component Pattern

17 lines (16 loc) 757 B
import React, { CSSProperties } from 'react'; import { OnChangeArgs, Product, ProductCardHandlers, ProductContextProps } from '../../interfaces'; import '../../styles/custom-styles.css'; import { InitialValues } from '../../interfaces/index'; export declare const ProductContext: React.Context<ProductContextProps>; interface ProductCardProps { children?: (arg: ProductCardHandlers) => JSX.Element; className?: string; product: Product; style?: CSSProperties; onChange?: (arg: OnChangeArgs) => void; value?: number; initialValues?: InitialValues; } declare const ProductCard: ({ children, className, initialValues, product, style, value, onChange, }: ProductCardProps) => JSX.Element; export default ProductCard;