@engie-group/fluid-design-system-react
Version:
Fluid Design System React
38 lines (37 loc) • 872 B
TypeScript
import React, { ComponentPropsWithoutRef } from 'react';
export declare const NJCardCover: React.ForwardRefExoticComponent<ICardCoverProps & React.RefAttributes<HTMLAnchorElement>>;
export interface ICardCoverProps extends ComponentPropsWithoutRef<'a'> {
/**
* Card title text
*/
heading: string;
/**
* Card title semantic element
* @default 'h4'
*/
headingElement?: React.ElementType;
/**
* Card content (max 150 characters)
*/
paragraph?: string;
/**
* Image url
*/
background: string;
/**
* Card link href
*/
href: string;
/**
* Card link target
*/
target?: string;
/**
* Function called on card click
*/
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
/**
* Optional additional className
*/
className?: string;
}