UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

26 lines (25 loc) 650 B
import { ReactNode } from 'react'; export type PropertyItem = { text: ReactNode; icon?: ReactNode; }; export type InfoItem = { text: string; icon: ReactNode; }; export type ResourceCardSize = "md" | "sm"; export type ResourceCardProps = { isSelected?: boolean; onSelect?: () => void; image?: string; defaultImage: string; title: string; propertyItems?: PropertyItem[]; infoIcons?: InfoItem[]; size?: ResourceCardSize; width?: string; onClick?: () => void; hasNoButtonOnFocus?: boolean; }; declare const ResourceCard: React.FunctionComponent<ResourceCardProps>; export default ResourceCard;