shivanshBTW / border-gradient-radius

0 stars 1 forks source link

border-gradient-radius

very small HOC to apply curved border gradients

npm downloads Gzip size
npm NPM JavaScript Style Guide

Install

npm install --save border-gradient-radius

Playground

You can access a basic demo here

Usage

import React, { Component } from 'react'

import BorderRadiusGradient from 'border-gradient-radius'

class Example extends Component {
  render() {
    return (
      <BorderRadiusGradient
        gradientValue={gradientValue}
        borderWidth={borderWidth}
        borderRadius={borderRadius}
        containerBackgroundColor='#FFF'
        className=''
      >
        {CHILDREN}
      </BorderRadiusGradient>
    )
  }
}

License

MIT © shivanshBTW