edv-product-card
Version:
Este es un paquete de pruebas de despliegue en NPM
19 lines (18 loc) • 1 kB
TypeScript
import React, { CSSProperties } from 'react';
import { ProductContextProps, Product, onChangeArgs, InitialValues, ProductCardHandlers } from '../interfaces';
export declare const ProductContext: React.Context<ProductContextProps>;
export interface ProductCardProps {
children: (args: ProductCardHandlers) => JSX.Element;
className?: string;
initialValues?: InitialValues;
onChange?: (args: onChangeArgs) => void;
style?: CSSProperties;
product: Product;
value?: number;
}
export declare const ProductCard: {
({ children, product, className, style, onChange, value, initialValues }: ProductCardProps): React.JSX.Element;
Title: ({ title, className, style }: import("./ProductTitle").ProductTitleProps) => React.JSX.Element;
Image: ({ img, className, isBackground, style }: import("./ProductImage").ProductImageProps) => React.JSX.Element;
Buttons: ({ className, style }: import("./ProductButtons").ProductButtonsProps) => React.JSX.Element;
};