analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
21 lines • 930 B
TypeScript
import { CSSProperties, ReactNode } from 'react';
import 'katex/dist/katex.min.css';
export interface HtmlMathRendererProps {
/** HTML content to render, may contain LaTeX math expressions */
content: string;
/** Additional CSS class names */
className?: string;
/** Inline styles */
style?: CSSProperties;
/** Whether to sanitize HTML before rendering (default: true) */
sanitize?: boolean;
/** Custom error renderer for math errors */
renderMathError?: (latex: string) => ReactNode;
/** Test ID for testing */
testId?: string;
/** Whether to render as inline element (span) instead of block (div). Use when inside labels or other phrasing content. */
inline?: boolean;
}
declare const _default: import("react").NamedExoticComponent<HtmlMathRendererProps & import("react").RefAttributes<HTMLElement>>;
export default _default;
//# sourceMappingURL=HtmlMathRenderer.d.ts.map