🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@forbetterorworse/shapes-and-lines

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forbetterorworse/shapes-and-lines

A React library that randomly generates shapes and lines.

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
0
Created
Source

shapes-and-lines

As the name suggests, this is a library that provides shape and line components.

Available components:

  • Shapes: renders multiple shapes that are placed randomly within a container
  • CurvedLines: renders multiple random curved lines
  • Polylines: renders multiple random polylines

Storybook page: https://forbetterorworse.github.io/shapes-and-lines/

Usage

Installation

To install the library in your project, run:

# npm
npm i @forbetterorworse/shapes-and-lines

# yarn
yarn add @forbetterorworse/shapes-and-lines

# pnpm
pnpm add @forbetterorworse/shapes-and-lines

Using the components

The components can be used as follows:

import {
  Shapes,
  CurvedLines,
  Polylines,
  Polygons,
} from '@forbetterorworse/shapes-and-lines'

const MyApp = () => {
  return (
    <>
      <Shapes />
      <CurvedLines />
      <Polylines />
      <Polygons />
    </>
  )
}

Props interface

Shapes

PropDescriptionRequiredDefault
shapeCountThe number of shapes to be generated5

CurvedLines

PropDescriptionRequiredDefault
viewBoxWidthThe width of the container viewbox200
viewBoxHeightThe height of the container viewbox200
lineCountThe number of lines to be generated2
hasRandomStrokeOpacityWhether each line gets a random stroke opacityfalse

Polylines

PropDescriptionRequiredDefault
viewBoxWidthThe width of the container viewbox200
viewBoxHeightThe height of the container viewbox200
lineCountThe number of lines to be generated2
hasRandomStrokeOpacityWhether each line gets a random stroke opacityfalse

Polygons

PropDescriptionRequiredDefault
polygonCountThe number of polygons to be generated1

Keywords

react

FAQs

Package last updated on 06 Aug 2025

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