@hhgtech/hhg-components
Version:
Hello Health Group common components
11 lines (10 loc) • 452 B
TypeScript
import React from 'react';
export type YoutubePlyrProps = {
id: string;
autoplay?: boolean;
isShort?: boolean;
/** `width:height` (e.g. `16:9`). Box aspect comes from `.link-image-wrapper` — not applied as Plyr inner ratio to avoid iframe/poster mismatch. */
ratio?: string;
posterFit?: 'cover' | 'contain';
};
export declare const YoutubePlyr: ({ id, autoplay, posterFit, }: YoutubePlyrProps) => React.JSX.Element;