react-matter-js
Version:
React adapter for the Matter.js physics engine
11 lines (10 loc) • 360 B
TypeScript
import React from 'react';
import Matter from 'matter-js';
declare const _default: React.MemoExoticComponent<React.ComponentType<Props>>;
export default _default;
declare type Props = {
options: Matter.IRendererOptions;
enableMouse?: boolean;
mouseConstraintOptions?: Matter.IMouseConstraintDefinition;
children?: React.ReactNode;
};