Skip to Content

Shoal Scene

A shoal scene component.

Installation

pnpm dlx shadcn@latest add @01orbital/shoal-scene

Usage

import { ShoalScene } from "@/components/scene/shoal-scene"

export default function Example() {
  return <ShoalScene />
}

API reference

A small living school of fish on a canvas: three local rules (cohesion, alignment, separation) and a slowly drifting current, nobody in charge. Fish flash bright as they turn toward the light. It pauses when off screen; reduced motion gets a settled still.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on