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

gradient-background

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gradient-background

[![NPM](https://img.shields.io/npm/v/gradient-background.svg)](https://www.npmjs.com/package/gradient-background) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![NPM](https://img.shie

1.6.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

NPM JavaScript Style Guide NPM npm npm bundle size GitHub stars

Gradient-Background

Easy way to add beauty background gradient on your websites. If you will like it i'm gonna add more gradient background themes for you

Examples:

Check demo here:

https://komstore.vercel.app/

Install:

npm i gradient-background
---
yarn add gradient-background

Usage:

// don't forget change props
import { GradientBackgroud } from 'gradient-background';


const App = () => {
  return (
    <div>
      <GradientBackgroud color='primary'/>
    </div>
  );
};

Colors in start positions:

primary:

secondary:

white:

dark:

blue:

orange:

green:

purple:

Props:

They are limited for responsive solution (all be good in mobile too)

propsrequireddefaultdescription
color(string)yesprimaryyour background color

Keywords

react

FAQs

Package last updated on 21 Feb 2022

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