react-matter-js
Version:
React adapter for the Matter.js physics engine
15 lines (14 loc) • 441 B
TypeScript
import React from 'react';
import Matter from 'matter-js';
import Body from './Body';
import { Size } from '../util';
declare const _default: React.MemoExoticComponent<React.ComponentType<Props>>;
export default _default;
declare type Props = {
x: Size;
y: Size;
radius: Size;
clone?: boolean;
options?: Matter.IBodyDefinition;
cloneProps?: any;
} & Omit<React.ComponentProps<typeof Body>, 'children'>;