# @types/react-katex

> TypeScript definitions for react-katex

Latest version **3.0.4** (published 2023-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-katex
pnpm add @types/react-katex
yarn add @types/react-katex
bun add @types/react-katex
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.4 |
| Published | 2023-12-04 |
| First published | 2022-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-katex
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-katex
- npm.io page: https://npm.io/package/@types/react-katex

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 3.0.4 (latest) — 2023-12-04
- 3.0.3 (ts4.5) — 2023-11-07
- 3.0.0 (ts4.2) — 2022-12-28
- 3.0.2 — 2023-10-18
- 3.0.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-katex`

# Summary
This package contains type definitions for react-katex (https://github.com/talyssonoc/react-katex).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-katex.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-katex/index.d.ts)
````ts
import * as React from "react";

export type ErrorRenderer = (error: Error) => React.ReactNode;

export interface MathComponentPropsWithMath {
    math: string;
    errorColor?: string;
    renderError?: ErrorRenderer;
}

export interface MathComponentPropsWithChildren {
    children: React.ReactNode;
    errorColor?: string;
    renderError?: ErrorRenderer;
}

export type MathComponentProps = MathComponentPropsWithMath | MathComponentPropsWithChildren;

export function BlockMath(props: MathComponentProps): React.JSX.Element;

export function InlineMath(props: MathComponentProps): React.JSX.Element;

````

### Additional Details
 * Last updated: Mon, 04 Dec 2023 20:35:43 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Geoffrey Tang](https://github.com/jeffswt).

---
_Source: https://npm.io/package/@types/react-katex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
