UNPKG

react-matter-js

Version:

React adapter for the Matter.js physics engine

11 lines (10 loc) 361 B
import React from 'react'; import Matter from 'matter-js'; import Render from '../Render'; declare const _default: React.MemoExoticComponent<React.ComponentType<Props>>; export default _default; declare type Props = { children?: React.ReactNode; options?: Matter.IRendererOptions; margin?: number; } & React.ComponentProps<typeof Render>;