Essence Core - Essence components
Components:
1. GRID SYSTEM
import {Block} from 'essence-core';
<Block classes={'brick brick-12'}>brick-12</Block>
<Block classes={'brick brick-6'}>brick-6</Block>
<Block classes={'brick brick-6'}>brick-6</Block>
<Block classes={'brick brick-4'}>brick-4</Block>
<Block classes={'brick brick-4'}>brick-4</Block>
<Block classes={'brick brick-4'}>brick-4</Block>
<Block classes={'brick brick-3'}>brick-3</Block>
<Block classes={'brick brick-3'}>brick-3</Block>
<Block classes={'brick brick-3'}>brick-3</Block>
<Block classes={'brick brick-3'}>brick-3</Block>
2. DIVIDER
import {Divider} from 'essence-core';
<Divider classes={'thick short e-background-indigo-400'} />
<Divider classes={'thick long e-background-indigo-400'} />
<Divider classes={'thick short e-background-indigo-400'} />
<Divider classes={'thin long e-background-indigo-400'} />
<Divider classes={'thick e-background-indigo-400'} />
<Divider classes={'thin e-background-indigo-400'} />
3. RIPPLE INK
import {Utils, RippleInk} from 'essence-core';
let boundingClient = this.currentButton.getBoundingClientRect();
let color = Utils.BackgroundColor(event);
let position = Utils.ClickPosition(event, boundingClient);
<RippleInk color={color} position={position}/>
4. TEXT TYPOGRAPHY
import {Text} from 'essence-core';
{}
<Text type={a} href={'http://essence.pearlhq.com'} target={'_blank'}> Discover Essence <Text/>
{}
<Text type={'span'} classes={'e-text-right e-headline'}>Text Typography Example</Text>
{}
<Text type={'span'} classes={'e-text-center e-headline'}>Text Typography Example</Text>
5. UTILITIES
import {Utils} from 'essence-core';
let boundingClient = this.refs.yourElement.getBoundingClientRect();
let position = Utils.ClickPosition(event, boundingClient);
let color = Utils.BackgroundColor(event);
let isMobile = Utils.Client.isMobile();
let screenSize = Utils.Client.screenSize();
let documentSize = Utils.Client.documentSize();
this.timer = new Utils.Timer(
function() {
},
2000
);
pauseTimer() {
if (this.timer) {
this.timer.pause();
}
}
resumeTimer() {
if (this.timer) {
this.timer.resume();
}
}