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

sceneit

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sceneit

A React component that simulates a website or web application at a specific resolution.

latest
Source
npmnpm
Version
2.4.0
Version published
Maintainers
1
Created
Source

Sceneit: React Resolution Simulator

A React component that simulates a website or web application at a specific resolution.

*Note: Component or app may not simulate properly if vh or vw units are being used for styling

Installation

To install the Sceneit, you can use npm or yarn:

npm install sceneit

yarn add sceneit

Usage

To use the component, simply import it and render it with your website or web application as its child:

import React from 'react';
import { SceneitWrapper } from 'sceneit';

const App = () => {
  return (
    <SceneitWrapper width={2000} height={1000}>
      <div className='app'>Hello World</div>
    </SceneitWrapper>
  );
};

export default App;

The SceneitWrapper component takes a width and height prop, which specify the desired resolution to simulate. It also takes a children prop, which should be your website or web application.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

react

FAQs

Package last updated on 30 Nov 2023

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