Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alkhipce/editorjs-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alkhipce/editorjs-react

[![](https://flat.badgen.net/npm/v/@alkhipce/editorjs-react?icon=npm)](https://www.npmjs.com/package/@alkhipce/editorjs-react) [![](https://flat.badgen.net/github/stars/etozhealkhipce/editorjs-react)](https://github.com/etozhealkhipce/editorjs-react) [![]

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@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

PropsDescriptionTypeDefault
codedisplay code in preformatted stylestring-

Delimiter

PropsDescriptionTypeDefault
----

Header

PropsDescriptionTypeDefault
levelheading text levelnumber (1-6)1
textyour textstring-

Image

PropsDescriptionTypeDefault
filecontains image infoobject with field url: string;-
captionimage captionstring or undefined-
withBorderadd border around imageboolean or undefinedfalse
stretchedstretch imageboolean or undefinedfalse
withBackgroundadd image backgroundboolean or undefinedfalse

List

PropsDescriptionTypeDefault
itemslist itemsstring array[]
styleset ordered or unordered list style'ordered' or 'unordered' string'unordered'

Paragraph

PropsDescriptionTypeDefault
textyour textstring-

Quote

PropsDescriptionTypeDefault
textyour textstring-
captionquote captionstring-
alignmentset quote alignment'left' or 'center' string'left'

RawTool

PropsDescriptionTypeDefault
htmlyour codestring-

Table

PropsDescriptionTypeDefault
contenttable datastring[][]-
withHeadingsadd table headingsbooleanfalse

Keywords

FAQs

Package last updated on 05 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc