jr-product-card-rts
Version:
Paquete de pruebas para desplegar en NPM
19 lines (18 loc) • 970 B
TypeScript
import React, { CSSProperties } from 'react';
import { InitialValues, IOnchangeArgs, IProduct, IProductCardHandlers, IProductContextProps } from '../interfaces/interfaces';
export declare const ProductContext: React.Context<IProductContextProps>;
export interface IProps {
product: IProduct;
children: (args: IProductCardHandlers) => JSX.Element;
className?: string;
style?: CSSProperties;
onChange?: (args: IOnchangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export declare function ProductCard({ children, product, className, style, onChange, value, initialValues, }: IProps): JSX.Element;
export declare namespace ProductCard {
var Title: ({ title, className, style }: import("./ProductTitle").IProps) => JSX.Element;
var Image: ({ img, className }: import("./ProductImage").IProps) => JSX.Element;
var Buttons: ({ className, style }: import("./ProductButtons").IProps) => JSX.Element;
}