0.1.5 • Published 4 years ago

react-mobile-layout v0.1.5

Weekly downloads
26
License
-
Repository
github
Last release
4 years ago

Mobile view layout

A component to be used when you need to show some information inside a mobile design layout

Instaling

npm i react-mobile-layout

Sample

import MobileViewLayout from 'react-mobile-layout'

const MyComponent = () => (
  <MobileViewLayout>
    <h1>Title</h1>
    <p>Some description</p>
  </MobileViewLayout>
)

Props

nametypedefaultrequireddescription
childrenReact.ReactNodenulltrueThe component that's render on screen
colorsobject{ primary: '#000', secondary: '#aaa', cam: '#aaa', screen: '#fff' }falseThe colors of the 'mobile'
widthnumber100falseThe mobile width
heightnumber230falseThe mobile height