Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.01 KB

react-iphone

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-iphone

Usage

import React, { Component } from 'react'

import { Iphone } from 'react-iphone'

class Example extends Component {
  render() {
    return <Iphone />
  }
}

And import style manually

@import '~react-iphone/dist/index.css';

API

Property Description Type Default
height Height of the phone string | number 500px
width Width of the phone string | number 240px
backgroundStyle Background of the phone object -

License

MIT © @juliusdejon