1.0.14 • Published 3 years ago

@lum-ai/react-tag v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-tag

React components for Text Annotation Graphs (TAG)

Usage

Install the package by running:

yarn add @lum-ai/react-tag

or

npm install @lum-ai/react-tag

You can build the source code by running:

$ npm run build

The provided example can be ran with the following command:

$ npm run start-example

Embedding the component should be as easy as:

import { TAGComponent } from '@lum-ai/react-tag';

[..]

return (
	<TAGComponent
		width
		height
		topTagCategories
		topLinkCategory
		bottomTagCategories
		bottomLinkCategory
		data
		format
		showTopMainLabel
		showTopArgLabels
		linkSlotInterval
		compactRows
		rowVerticalPadding
		containerWidth
		customParsers
		exportSVG
	/>
);

[..]

Component parameter types:

TAGComponent.propTypes = {
	width: PropTypes.number,
	height: PropTypes.number,
	topTagCategories: PropTypes.arrayOf(PropTypes.string),
	topLinkCategory: PropTypes.string,
	bottomTagCategories: PropTypes.arrayOf(PropTypes.string),
	bottomLinkCategory: PropTypes.string,
	data: PropTypes.shape(),
	format: PropTypes.string,
	showTopMainLabel: PropTypes.bool,
	showTopArgLabels: PropTypes.bool,
	linkSlotInterval: PropTypes.number,
	compactRows: PropTypes.bool,
	rowVerticalPadding: PropTypes.number,
	containerWidth: PropTypes.number,
	customParsers: PropTypes.arrayOf(PropTypes.shape()),
	exportSVG: PropTypes.bool,
};
1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago