Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.1 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.1 KB

React Device Frame

React wrapper for device frame.

Supported devices

iPhone X (Silver)

iPhone 8 (Silver, Gold and Space Gray)

Google Pixel (Very Silver, Quite Black and Really Blue)

Samsung Galaxy S8 ( Midnight Black and Coral Blue)

iPad Pro (Silver, Gold, Rose Gold and Space Gray)

MacBook (Silver, Gold, Rose Gold and Space Gray)

MacBook Pro (Silver and Space Gray)

Surface Studio

iMac Pro

Apple Watch

Installations

$ npm i react-device-frame --save

Usage

import React, {Component} from "react";
import Device from "react-device-frame";

class myDevice extends Component {

  render (){
    return (
      <Device name="iphone-8" color="gold" url="https://www.google.com" />
    )
  }
}

export default myDevice;

Properties

Property Value Type
name iphone-x, iphone-8, google-pixel, galaxy-s8, ipad-pro, surface-pro, imac-pro, apple-watch string
color silver, spacegray, black, gold, rosegold, blue string
url e.g https://www.google.com string

LICENSE: MIT

Developer: Olalekan Animashaun