@hhgtech/hhg-components
Version:
Hello Health Group common components
31 lines (30 loc) • 1 kB
TypeScript
import React, { PropsWithChildren, ReactNode } from 'react';
type TCardItemProps = {
title: string;
logo: string;
href: string;
LinkComponent?: React.ElementType<{
href: string;
children?: ReactNode;
}>;
defaultImage?: string;
description?: ReactNode | string;
contentInfo?: ReactNode;
className?: string;
isMobile?: boolean;
as?: string;
altText?: string;
renderImage?: (props: {
href: string;
logo: string;
defaultImage?: string;
altText?: string;
isMobile: boolean;
LinkComponent: React.ElementType<{
href: string;
children?: ReactNode;
}>;
}) => ReactNode;
};
export declare function CardListItem({ title, href, description, logo, defaultImage, LinkComponent, children, contentInfo, isMobile, className, as, altText, renderImage, }: PropsWithChildren<TCardItemProps>): React.JSX.Element;
export default CardListItem;