Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coolshapes-react

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coolshapes-react

A react component library for coolshapes

  • 0.0.5-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49
decreased by-81.37%
Maintainers
1
Weekly downloads
 
Created
Source

Coolshapes

license npm package

What & Why?

A simple, fun project for the sake of creating some cool-looking abstract shapes with little grainy gradients crafted by @realvjy. Coolshapes is a completely open-source set of 100+ abstract shapes crafted for any design and development projects. Free for both commercial and personal use. Licensed under MIT.

Table of Contents

Usage

At its core, Coolshapes is a collection of SVG files. This means that you can use this in all the same ways you can use SVGs (e.g. img, background-image, inline, object, embed, iframe).

The following are ways you can use Coolshapes.

Coolshapes React

Implementation of the coolshapes icon library for react applications.

How to use

It's built with ES modules so it's completely tree-shakable. Each icon can be imported as a react component.

Implementation of the coolshapes icon library for web applications.

npm install coolshapes-react

or

yarn add coolshapes-react

Example

You can pass additional props to adjust the icon.

import { Coolshape } from 'coolshapes-react';

const App = () => {
  return <Coolshape type="star" size={48} noise={true} />;
};

export default App;
import { Star, Ellipse } from 'coolshapes-react';

const App = () => {
  return <Star index="1" size={48} noise={true} />;
};

export default App;

Props

namedata typedefault
sizeNumber200
typeStringcurrentColor
noiseBooleantrue
indexNumberrandom

Props Value

If using

<Coolshape type={star} index={1} size={48} noise={true} />
typeindexdefault
star1,2,..4random
ellipse1,2,..12random

Keywords

FAQs

Package last updated on 18 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc