Socket
Socket
Sign inDemoInstall

react-ocl

Package Overview
Dependencies
0
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ocl


Version published
Maintainers
4
Created

Changelog

Source

6.1.0 (2023-08-04)

Features

  • add labelColor (7857cdd)

Readme

Source

react-ocl

React components integrating OpenChemLib.

These react component allows to display and edit molfile and smiles.

Zakodium logo

Maintained by Zakodium

NPM version build status npm download

Installation

npm install openchemlib react-ocl

Usage

import { SmilesSvgRenderer } from 'react-ocl';

function MyComponent() {
  return <SmilesSvgRenderer smiles="COCCOOOCO" />;
}

Which version of the library should I use?

This library is available in three versions, like openchemlib: react-ocl/minimal (also available as react-ocl), react-ocl/core and react-ocl/full.

  • If you only use the SvgRenderer component, you can choose any version, minimal being the smallest one.
  • If you want to use the StructureEditor component, you must import react-ocl/full.
  • If you are writing a library and want to allow your consumer to provide the OCL version for rendering, you must import react-ocl/base.

Documentation

See https://zakodium-oss.github.io/react-ocl/ for detailed usage examples.

Keywords

FAQs

Last updated on 04 Aug 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc