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

react-stretchable-button

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stretchable-button

A simple React button component that can be stretched to display something on mouse over.

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

react-stretchable-button

Build Status NpmVersion npm GitHub

A simple React button component that can be stretched to display something on mouse over.

Demo

Demo is available with source code.

Installation

npm install react-stretchable-button --save

API

PropertyDescriptionDefault valuetype
heightHeight of button50number
widthWidth of button before and after strech[50,100]array
styleStyle of root divnullobject
buttonStyleStyle of button divnullobject
squareShould button shape be squarefalseboolean
alignRightShould button stretch to leftfalseboolean
stretchPaddingPadding of stretched button25number
zDepthSet zDepth of button, whose range is [0,5]2number
transitionDurationDuration time of button stretching (ms)250number
emergeDelayDelay time of component emerging100number
onMouseEnterWill be invoked each time mouse enters buttonnullfunction
onMouseLeaveWill be invoked each time mouse leaves buttonnullfunction
componentDisplayedComponent displayed before button is stretchednullnode
componentToDisplayComponent to display after button is stretchednullnode

Development Setup

  • Clone the repo: git clone https://github.com/zianke/react-stretchable-button.git
  • Install the dependencies: cd react-stretchable-button && npm install
  • Start webpack: npm start
  • Modify example/index.js and open example/index.html

FAQs

Package last updated on 03 Sep 2018

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