🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

react-linear-gradient-button

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-linear-gradient-button

React linear gradient button component.

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source


react-linear-gradient-button

React linear gradient button component

code style: prettier

DEMO

Install

$ npm install react-linear-gradient-button

Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import GradientButton from 'react-linear-gradient-button';

class Basic extends Component {
  render() {
    return <GradientButton>BUTTON</GradientButton>;
  }
}

ReactDOM.render(<Basic />, document.getElementById('root'));

Features

  • No external CSS file.
  • Built with styled-components 💅

Props

PropsTypeDefaultDescription
childrenString || NodeRequiredContent of the button.
themeString"Vanusa"Gradient theme from uigradients.
disabledBoolfalseShould render a disabled button.
gradient[String]nullArray of colors (e.g., ['#f00b47', '#0f6bb6'], [rgba(255,0,0,0), rgba(255,0,0,1)]).
NOTE: this props has higher level then theme.
angleString"right"The angle or direction of linear gradient (e.g., "bottom", "30deg").
Check Using Angles section on w3schools/css3_gradients for more information.
paddingNumber || String || [Number] || [String]10The CSS padding argument of the button. Could be an array of four sides, just like CSS.
Unit is px.
borderRadiusNumber20The CSS border-radius argument of the button.
Unit is px.
borderWidthNumber2The CSS border-width argument of the button.
Unit is px.
backgroundString"#fff"The CSS background-color argument of the button.
colorString"#ae3560"The CSS color argument of the button.
fontSizeNumber16The CSS font-size argument of the button.
transitionObjectSee followingThe CSS transition argument of the button.
transition.propertyString"all"The CSS transition-property argument of the button.
transition.durationNumber0.2The CSS transition-duration argument of the button.
Unit is second.
transition.timingFunctionString"ease-in-out"The CSS transition-timing-function argument of the button.
transition.delayNumber0The CSS transition-delay argument of the button.
Unit is second.

License

MIT © xxhomey19

Keywords

button

FAQs

Package last updated on 14 May 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