@clubmed/trident-ui
Version:
Shared ClubMed React UI components
15 lines (14 loc) • 620 B
TypeScript
import { ComponentProps, FunctionComponent } from 'react';
import { Heading } from '../heading/Heading';
import { Tag } from '../Tag';
import { CardBackgroundProps } from './CardBackground';
import { CardProps } from './Card';
export interface ExpandableCardProps extends Omit<CardProps<'article'>, 'onClick'> {
hLevel?: ComponentProps<typeof Heading>['level'];
image?: CardBackgroundProps;
onClick?: (isExpanded: boolean) => void;
subtitle?: string | null;
tags?: ComponentProps<typeof Tag>[] | null;
title: string;
}
export declare const ExpandableCard: FunctionComponent<ExpandableCardProps>;