Made with create-react-library
npm install --save react-iphoneimport 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';
| 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 | - |
MIT © @juliusdejon