react-matter-js
Version:
React adapter for the Matter.js physics engine
14 lines (13 loc) • 381 B
TypeScript
import React from 'react';
import Rectangle from '../bodies/Rectangle';
import { Size } from '../util';
declare const Walls: ({ options, ...props }: Props) => JSX.Element;
export default Walls;
declare type Props = {
x: Size;
y: Size;
width: Size;
height: Size;
wallWidth?: Size;
options?: React.ComponentProps<typeof Rectangle>['options'];
};