npm.io
1.1.2 • Published 9 years ago

c1-alignment-tool

Licence
MIT
Version
1.1.2
Deps
5
Vulns
0
Weekly
0

#Alignment tool

The Content Program Patterns library.

Patterns Project

Implementation of alignment-tool is based on the patterns repository: C-Patterns

Install

###NPM

npm install --save c1-alignment-tool

###YARN

yarn add c1-alignment-tool

Usage

###ES6

	import { AlignmentTool } from 'c1-alignment-tool';

	render() {
		return (
			<div>
				<AlignmentTool />
			<div>
		)
	}

also to reduce file size, you can require individual components:

	import AlignmentTool from 'c1-alignment-tool/dist/AlignmentTool';
	render() {
		return (
			<div>
				<AlignmentTool />
			<div>
		)
	}

###ES5

	const c1pattern = require('c1-alignment-tool');
	const AlignmentTool = c1pattern.AlignmentTool;
	render() {
   		return (
			<div>
				<AlignmentTool />
			<div>)
	}