import { type ForwardRefRenderFunction, type ReactElement, forwardRef, } from 'react'; import { Figure, type FigureProps } from '../../atoms'; import styles from './card.module.scss'; export type CardCoverProps = Omit & { /** * The cover. */ children: ReactElement; }; const CardCoverWithRef: ForwardRefRenderFunction< HTMLElement, CardCoverProps > = ({ className = '', children, ...props }, ref) => { const coverClass = `${styles.cover} ${className}`; return (
{children}
); }; export const CardCover = forwardRef(CardCoverWithRef); >
summaryrefslogtreecommitdiffstats
blob: cf4b03eb2ab29c197c0e4043de176b14d3114ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29