UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

24 lines (23 loc) 734 B
import { ReactNode } from 'react'; import type { ActionIconProps } from "../ActionIcon"; import type { CopyButtonProps } from "../CopyButton"; import { DivProps } from "../types"; export interface MermaidProps extends DivProps { actionsRender?: (props: { actionIconSize: ActionIconProps['size']; content: string; originalNode: ReactNode; }) => ReactNode; bodyRender?: (props: { content: string; originalNode: ReactNode; }) => ReactNode; children: string; copyButtonSize?: CopyButtonProps['size']; copyable?: boolean; enablePanZoom?: boolean; fileName?: string; fullFeatured?: boolean; showLanguage?: boolean; type?: 'ghost' | 'block' | 'pure'; }