You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@vx/gradient

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/gradient

vx gradient

0.0.199
latest
Source
npmnpm
Version published
Weekly downloads
24K
-94.7%
Maintainers
3
Weekly downloads
 
Created

What is @vx/gradient?

@vx/gradient is a part of the @vx suite of visualization components for React. It provides a set of components to create gradient effects in SVG elements, which can be used to enhance data visualizations with color transitions.

What are @vx/gradient's main functionalities?

Linear Gradient

The LinearGradient component allows you to create a linear gradient effect between two colors. This can be used to fill SVG elements with a smooth transition from one color to another.

<LinearGradient id="gradient" from="#fbc2eb" to="#a6c1ee" />

Radial Gradient

The RadialGradient component creates a radial gradient effect, transitioning colors from the center outwards. This is useful for creating circular gradient effects in SVG elements.

<RadialGradient id="gradient" from="#fbc2eb" to="#a6c1ee" r={0.8} />

Gradient Stop

GradientStop is used within gradient components to define specific color stops along the gradient. This allows for more complex gradient effects by specifying multiple colors and their positions.

<GradientStop offset="0%" stopColor="#fbc2eb" />

Other packages similar to @vx/gradient

Keywords

vx

FAQs

Package last updated on 09 Sep 2020

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