6.1.0 • Published 9 months ago

react-ocl v6.1.0

Weekly downloads
162
License
MIT
Repository
github
Last release
9 months ago

react-ocl

React components integrating OpenChemLib.

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

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.

5.0.1

11 months ago

6.1.0

9 months ago

6.0.1

9 months ago

6.0.0

9 months ago

6.0.2

9 months ago

5.0.0

2 years ago

4.4.0

2 years ago

4.3.5

2 years ago

4.3.4

2 years ago

4.3.2

3 years ago

4.3.3

3 years ago

4.3.1

3 years ago

4.3.0

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.0.4

4 years ago

4.1.0

4 years ago

4.0.3

4 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago