1.1.2 • Published 7 years ago
c1-alignment-tool v1.1.2
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>)
}