mo-product-card-ts-react
Version:
``` import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'mo-product-card'; ```
19 lines (18 loc) • 955 B
TypeScript
import React, { CSSProperties } from 'react';
import { ProductContextProps, Product, onChangeArgs, InitialValues, ProductCardChildrenProps } from '../interfaces/interfaces';
export declare const productContext: React.Context<ProductContextProps>;
export interface Props {
product: Product;
children: (message: ProductCardChildrenProps) => JSX.Element;
className?: string;
style?: CSSProperties;
onChange?: (args: onChangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export declare const ProductCard: {
({ children, product, className, style, onChange, value, initialValues }: Props): React.JSX.Element;
Title: ({ title, className, style }: import("./ProductTitle").Props) => React.JSX.Element;
Image: ({ img, className, style }: import("./ProductImage").Props) => React.JSX.Element;
Buttons: ({ className, style }: import("./ProductButtons").Props) => React.JSX.Element;
};