Git Product home page Git Product logo

react-linear-gradient-button's Introduction


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';

const Basic extends components {
  render() {
    return <GradientButton content="BUTTON" />;
  }
}

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

Features

Props

Props Type Default Description
content String || Node Required Content of the button.
theme String "Vanusa" Gradient theme from uigradients.
disabled Bool false Should render a disabled button.
gradient [String] null Array of colors (e.g., ['#f00b47', '#0f6bb6'], [rgba(255,0,0,0), rgba(255,0,0,1)]).
NOTE: this props has higher level then theme.
angle String "right" The angle or direction of linear gradient (e.g., "bottom", "30deg").
Check Using Angles section on w3schools/css3_gradients for more information.
padding Number || String || [Number] || [String] 10 The CSS padding argument of the button. Could be an array of four sides, just like CSS.
Unit is px.
borderRadius Number 20 The CSS border-radius argument of the button.
Unit is px.
borderWith Number 2 The CSS border-width argument of the button.
Unit is px.
background String "#fff" The CSS background-color argument of the button.
color String "#ae3560" The CSS color argument of the button.
fontSize Number 16 The CSS font-size argument of the button.
transition Object See following The CSS transition argument of the button.
transition.property String "all" The CSS transition-property argument of the button.
transition.duration Number 0.2 The CSS transition-duration argument of the button.
Unit is second.
transition.timingFunction String "ease-in-out" The CSS transition-timing-function argument of the button.
transition.delay Number 0 The CSS transition-delay argument of the button.
Unit is second.

License

MIT ยฉ xxhomey19

react-linear-gradient-button's People

Contributors

homerchen19 avatar

Stargazers

Evelyn Oliveira avatar

Watchers

James Cloos avatar C. T. Lin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.