1.4.2 • Published 3 years ago

boid-flock v1.4.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Boid Flock

A React component to render a boids simulation anywhere

Demo gif

Installation

npm add 'boid-flock'

Usage

import { BoidFlock } from "boid-flock";

export function YourComponent() {
  return (
    <BoidFlock>
      <span>You can render whatever you like in here</span>
    </BoidFlock>
  );
}

Optionally you can pass a boidCount prop to the component to control the number of boids rendered.

import { BoidFlock } from "boid-flock";

export function YourComponent() {
  return (
    <BoidFlock boidCount={3}>
      <p>There's only 3 boids in my background</p>
    </BoidFlock>
  );
}
1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago