@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
18 lines (17 loc) • 558 B
TypeScript
import { CSSProperties } from 'react';
import type { BuiltinTheme } from 'shiki';
interface StaticRendererProps {
children: string;
className?: string;
enableTransformer?: boolean;
fallbackClassName?: string;
language: string;
style?: CSSProperties;
theme?: BuiltinTheme;
}
/**
* Static renderer for syntax highlighting without animation
* Uses useHighlight hook to generate HTML and renders it directly
*/
declare const StaticRenderer: import("react").NamedExoticComponent<StaticRendererProps>;
export default StaticRenderer;