UNPKG

@hhgtech/hhg-components

Version:
19 lines (18 loc) 812 B
import React, { CSSProperties } from 'react'; export type Props = { url: string; image?: string; className?: string; style?: CSSProperties; autoPlay?: boolean; isShort?: boolean; autoScaleByVideoType?: boolean; /** `width:height` (e.g. `16:9`, `9:16`). Overrides auto short/landscape padding when set. */ ratio?: string; /** Thumbnail / Plyr poster: `cover` fills frame (default), `contain` shows full image with possible letterboxing. */ posterFit?: 'cover' | 'contain'; baseUrl?: string; onPushStatus?: (val: boolean) => void; }; declare const SocialLinkPreview: ({ url, image, className, style, baseUrl, autoPlay, isShort, autoScaleByVideoType, ratio, posterFit, onPushStatus, }: Props) => React.JSX.Element; export { SocialLinkPreview };