react-iphone
Made with create-react-library
Install
npm install --save react-iphone
Usage
@import '~react-iphone/dist/index.css';
import React, { Component } from 'react'
import { Iphone } from 'react-iphone'
import './index.css'
class Example extends Component {
render() {
return <Iphone />
}
}
API
Property | Description | Type | Default |
---|---|---|---|
height | Height of the phone | string | number | - |
width | Width of the phone | string | number | - |
backgroundStyle | Background of the phone | object | - |
License
MIT © @juliusdejon