@forbetterorworse/shapes-and-lines
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

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

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

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

Development

Tech Stack

The main tech this library uses:

  • React
  • React Icons
  • Vite
  • Storybook

Setup

Steps to setup the project locally:

  • Clone the repo
  • Run pnpm i to install the dependencies
  • Run pnpm storybook to start Storybook

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.50latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i @forbetterorworse/shapes-and-lines

Weekly Downloads

0

Version

0.2.5

License

MIT

Unpacked Size

42.3 kB

Total Files

6

Last publish

Collaborators

  • huyenltnguyen