very small HOC to apply curved border gradients
npm install --save border-gradient-radius
You can access a basic demo here
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>
)
}
}
MIT © shivanshBTW