darrencrossley / react-device-frame

Preview website on a device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Preview website on a device

License:MIT License


Languages

Language:CSS 98.8%Language:JavaScript 1.2%