New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-iphone-layout

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-iphone-layout

React iPhone layout in web browser

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
2
Created
Source

React-iPhone-Layout

iphone_image

Installation

$ npm install react-iphone-layout --save-dev


$ yarn add react-iphone-layout --dev

Features

  • Web App Compatibility: Easily integrate iPhone layout into your web applications.
  • Web View Support: Optimize for iPhone on the web to provide a seamless web view.
  • Dynamic iPhone View Resizing: You can dynamically adjust the size of the iPhone view.
  • Real-Time View Switching: Check the iPhone view and laptop view in real-time through a control box, allowing for seamless testing and optimization of layouts across different devices.
  • Rotation iPhone: provide a screen rotation feature for the iPhone. (The internal content does not rotate)

Getting Started

import { IPhoneLayout } from "react-iphone-layout";
import "react-iphone-layout/dist/ReactIPhoneLayout.css"; // ✨

function App() {
  return (
    <IPhoneLayout>
      <p>this is iPhone layout!!!</p>
    </IPhoneLayout>
  );
}

Props

PropsTypeDefault
isStatusBarbooleantrue
position"top", "right", "bottom", "left""right"
mode"iPhone", "laptop""iPhone"
minSizenumber60
defaultSizenumber75
maxSizenumber100

Demo

  • CodeSandbox: Try out the react-iphone-layout library in an interactive online editor. Click here to view the demo.

License

MIT

Keywords

react-iPhone

FAQs

Package last updated on 01 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts