Component docs
Loading
"use client";
import { CanvasGameStage } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | — |
stageClassName | string | — | — |
childrenReactNode
stageClassNamestring
Other props are passed to the root element (CanvasHTMLAttributes<HTMLCanvasElement>), including className, style, id and aria-* attributes.
<CanvasGameStage aria-label="Game board" width={320} height={180}><GameOverlay title="Ready" /></CanvasGameStage>