@blast-engine/responsive-wrap
v1.0.4
Published
>
Downloads
2
Readme
@blast-engine/responsive-wrap
Install
npm install --save @blast-engine/responsive-wrap
Usage
import React, { Component } from 'react'
import { ResponsiveWrap } from '@blast-engine/responsive-wrap'
import '@blast-engine/responsive-wrap'
class Example extends Component {
render() {
return (
<ResponsiveWrap minWidth={100} maxWidth={200} >
{/* children */}
</ResponsiveWrap>
)
}
}
Props
- minWidth: minimum width of each child [required]
- maxWidth: maximum width of each child [required]
- children: children to render [required]
- outerDivClassName: class name for outer div [optional]