@alkhipce/editorjs-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

@alkhipce/editorjs-react

Demo

https://editorjs-react.vercel.app/

Installation

npm i @alkhipce/editorjs-react

Usage

// import Parser component or import certain component like this (available components list below)
import { Parser, Table } from '@alkhipce/editorjs-react';

const App = () => {
  return (
    <>
      <Parser data={EDITORJS_DATA} />
      <Table content={EDITORJS_DATA} withHeadings={false} />;
    </>
  );
};

Available components

Code

Props Description Type Default
code display code in preformatted style string -

Delimiter

Props Description Type Default
- - - -

Header

Props Description Type Default
level heading text level number (1-6) 1
text your text string -

Image

Props Description Type Default
file contains image info object with field url: string; -
caption image caption string or undefined -
withBorder add border around image boolean or undefined false
stretched stretch image boolean or undefined false
withBackground add image background boolean or undefined false

List

Props Description Type Default
items list items string array []
style set ordered or unordered list style 'ordered' or 'unordered' string 'unordered'

Paragraph

Props Description Type Default
text your text string -

Quote

Props Description Type Default
text your text string -
caption quote caption string -
alignment set quote alignment 'left' or 'center' string 'left'

RawTool

Props Description Type Default
html your code string -

Table

Props Description Type Default
content table data string[][] -
withHeadings add table headings boolean false

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.4114latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.4114
0.1.30
0.1.20
0.1.10
0.1.01

Package Sidebar

Install

npm i @alkhipce/editorjs-react

Weekly Downloads

88

Version

0.1.4

License

MIT

Unpacked Size

108 kB

Total Files

66

Last publish

Collaborators

  • alkhipce
  • yunes