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

react-resizer-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resizer-component

A react resizer component as a standalone library.

latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
1
Created
Source

react resizer component

Version

A resizer component as a standalone library for resizing layout using Flow and styled components.

React resizer component

Installation

Use the package manager npm to install react resizer component.

npm install react-resizer-component

Usage

You can check the example folder in this repository for more help.

import Layout from "react-resizer-component";

<Layout
    resize={"vertical"}
    width={500}
    height={50}
    background={"blue"}
/>
PropsTypeDefaultDescription
widthnumber300Size in width
heightnumber300Size in height
resize"string""both"Change the size horizontal,vertical,both
background"string""none"Background color
repeat"string""no-repeat"Sets if/how a background image will be repeated repeat,repeat-x,repeat-y,no-repeat,space,round,initial,inherit
size"string""cover"Defines the size of the background images for the element contain,cover,auto,length,percentage,initial,inherit
image"string"""Add an image
overflow"string"autospecifies what should happen if content overflows an element's box

Contributing

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

License

MIT

Keywords

resizer

FAQs

Package last updated on 31 Oct 2019

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