react-iphone

Made with create-react-library

Usage no npm install needed!

<script type="module">
  import reactIphone from 'https://cdn.skypack.dev/react-iphone';
</script>

README

react-iphone

Made with create-react-library

NPM JavaScript Style Guide

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