@engie-group/fluid-design-system-react
Version:
Fluid Design System React
28 lines (27 loc) • 800 B
TypeScript
import React, { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
export declare const NJCardBody: React.ForwardRefExoticComponent<ICardBodyProps & React.RefAttributes<HTMLDivElement>>;
export interface ICardBodyProps extends ComponentPropsWithoutRef<'div'> {
/**
* Title of the Card body
*/
heading?: React.ReactNode;
/**
* Card title semantic element
* @default 'h4'
*/
headingElement?: ElementType;
/**
* Paragraph of the Card body.
* If you want to display more than a <p>,
* pass a children instead.
*/
paragraph?: string;
/**
* Card content (displayed below the `paragraph` if specified)
*/
children?: ReactNode;
/**
* Optional additional className
*/
className?: string;
}