@longears-mobile/rcs-client-mockup
Version:
A React smartphone preview components for RCS client mockups.
19 lines (18 loc) • 1.07 kB
TypeScript
/// <reference types="react" />
import { RichCardProps } from '../../types';
/**
* RichCard component to display a card with media, title, description, and suggestions.
*
* @param {RichCardProps} props - The properties for the RichCard component.
* @param {string} props.title - The title of the card.
* @param {string} props.description - The description of the card.
* @param {RichCardMedia} props.media - The media object containing url and type.
* @param {string} props.media.url - The URL of the media.
* @param {string} props.media.type - The type of the media (e.g., 'image', 'video').
* @param {string} [props.layout='vertical'] - The layout of the card ('vertical' or 'horizontal').
* @param {string} [props.mediaPosition='top'] - The position of the media ('top', 'left', 'right').
* @param {RichCardSuggestions[]} [props.suggestions=[]] - The list of suggestions to display.
* @returns {JSX.Element|null} The rendered RichCard component or null if no content is provided.
*/
declare const RichCard: React.FC<RichCardProps>;
export default RichCard;