ml-product-card
Version:
### Ejemplo de paquete para subir a npm
15 lines (14 loc) • 663 B
TypeScript
import React from 'react';
import { InitialValues, onChangeArgs, ProductCardContext, Producto, ProductCardHandlers } from '../interfaces/ProductCard';
export declare const ProductContext: React.Context<ProductCardContext>;
export interface Props {
children: (args: ProductCardHandlers) => JSX.Element;
producto: Producto;
className?: string;
style?: React.CSSProperties;
onChange?: (args: onChangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export declare const ProductCard: ({ children, producto, className, style, onChange, value, initialValues }: Props) => JSX.Element;
export default ProductCard;