0.12.8 • Published 6 months ago

@types/react-highlight v0.12.8

Weekly downloads
2,743
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-highlight

Summary

This package contains type definitions for react-highlight (https://github.com/akiran/react-highlight).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-highlight.

index.d.ts

// Type definitions for react-highlight 0.12
// Project: https://github.com/akiran/react-highlight
// Definitions by: JP Lew <https://github.com/jplew>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

/**
 * Props for a Highlight component.
 */
export interface HighlightProps {
    children?: React.ReactNode;
    /**
     * Language name to use as a class to signal type to highlight.js.
     */
    className?: string | undefined;
    /**
     * Set innerHTML=true to highlight multiple code snippets at a time.
     */
    innerHTML?: boolean | undefined;
}

/**
 * Visually prettifies child code with highlight.js.
 */
declare const Highlight: React.ComponentClass<HighlightProps>;

export default Highlight;

Additional Details

  • Last updated: Fri, 08 Oct 2021 20:01:21 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by JP Lew.

0.12.7

7 months ago

0.12.8

6 months ago

0.12.6

8 months ago

0.12.5

3 years ago

0.12.4

3 years ago

0.12.3

3 years ago

0.12.2

4 years ago

0.12.1

6 years ago

0.12.0

6 years ago