slate-entity-labeler
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Slate Entity Labeler

What is it?

React component to help labeling entities within a given string of text. Built on: https://www.slatejs.org

Getting Started

Install

npm i slate-entity-labeler

Import

import { SlateEntityLabeler } from 'slate-entity-labeler'

Declare

<SateEntityLabeler
  text={this.state.text}
  entities={this.state.entities}
  labeledEntities={this.state.labeledEntities}
  onChange={this.onChangeLabeledEntities}
/>

Demo

https://mattmazzola.github.io/slate-entity-labeler/

Source

https://github.com/mattmazzola/slate-entity-labeler

Readme

Keywords

none

Package Sidebar

Install

npm i slate-entity-labeler

Weekly Downloads

1

Version

0.1.2

License

none

Unpacked Size

117 kB

Total Files

44

Last publish

Collaborators

  • mattmazzola