1.0.0 • Published 6 years ago
peristalsis v1.0.0
peristalsis
ˌpɛrɪˈstalsɪs
noun physiology
the involuntary constriction and relaxation of the muscles of the intestine or another canal, creating wave-like movements which push the contents of the canal forward.
layout for boborygmous components
Install
npm install --save-dev peristalsis
Usage
import React, { Component } from 'react'
import { Wrapper, Layout, LayoutItem } from 'peristalsis'
class Example extends Component {
render () {
return (
<Wrapper>
<Layout gutter="small">
<LayoutItem width="1/1 1/2@tablet 1/4@desktop">
// ... children
</LayoutItem>
<LayoutItem width="1/1 1/2@tablet 1/4@desktop">
// ... children
</LayoutItem>
<LayoutItem width="1/1 1/2@tablet 1/4@desktop">
// ... children
</LayoutItem>
<LayoutItem width="1/1 1/2@tablet 1/4@desktop">
// ... children
</LayoutItem>
</Layout>
</Wrapper>
)
}
}
License
MIT © tomhuhges
1.0.0
6 years ago