markdown-to-poster
Version:
markdown-to-poster component renders Markdown as visually appealing social media images. The project also includes a built-in web editor that can be used as an online Markdown-to-poster editor with a simple one-click deployment.
22 lines (21 loc) • 793 B
TypeScript
type ICardType = 'QuoteCard' | 'NewsDigest';
type IThemeType = 'blue' | 'pink' | 'purple' | 'green' | 'yellow' | 'gray' | 'red' | 'indigo' | 'SpringGradientWave';
type IAspectRatioType = 'auto' | '16/9' | '1/1' | '4/3';
type ISizeType = 'desktop' | 'mobile';
interface Md2PosterProps {
children?: any;
className?: string;
theme?: IThemeType;
template?: ICardType;
aspectRatio?: IAspectRatioType;
canCopy?: boolean;
size?: ISizeType;
copySuccessCallback?: () => void;
copyFailedCallback?: () => void;
}
interface Md2PosterRef {
handleCopy: () => Promise<unknown>;
}
declare const Md2Poster: import('react').ForwardRefExoticComponent<Md2PosterProps & import('react').RefAttributes<Md2PosterRef>>;
export type { Md2PosterProps };
export default Md2Poster;