$ cnpm install react-devices
A curated collection of devices as react components.
npm install react-devices
import React, {PropTypes, Component} from 'react';
import { IPhone, Android, IPad, MacBook, AppleWatch } from 'react-devices';
export default class App extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<IPhone
model="iphone6"
color="silver"
landscape
/>
<Android
model="s5"
color="white"
/>
<IPad
model="ipad"
color="silver"
landscape
/>
<MacBook model="macbook" />
<AppleWatch color="rose-gold" small/>
</div>
);
}
};
Please Open issue, describe bug, suggest solution
Feel free to contribute fixes on any device or add your own to the list by creating a pull request.
To build for development
npm install
npm run build
Copyright 2014 - 2017 © taobao.org |