Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zakodium-oss/react-ocl

React components integrating OpenChemLib
https://github.com/zakodium-oss/react-ocl

editor hacktoberfest molecule molfile reactjs smiles

Last synced: 27 days ago
JSON representation

React components integrating OpenChemLib

Awesome Lists containing this project

README

        

# react-ocl

React components integrating OpenChemLib.

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


Zakodium logo


Maintained by Zakodium



[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]

## Installation

```console
npm install openchemlib react-ocl
```

## Usage

```jsx
import { SmilesSvgRenderer } from 'react-ocl';

function MyComponent() {
return ;
}
```

## 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://react-ocl.pages.dev for detailed usage examples.

[npm-image]: https://img.shields.io/npm/v/react-ocl.svg
[npm-url]: https://npmjs.org/package/react-ocl
[ci-image]: https://github.com/zakodium-oss/react-ocl/workflows/Node.js%20CI/badge.svg?branch=main
[ci-url]: https://github.com/zakodium-oss/react-ocl/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/react-ocl.svg
[download-url]: https://npmjs.org/package/react-ocl