React components for aframe primitives for aframe-react.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
test
.babelrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

aframe-react-components

Build Status Build Status

** Still in development, do not use yet! Issues with shorthand property mappings in aframe-react possibly? **

Provides light sugar around aframe-react's <Entity /> component. Instead of passing in a primitive attribute to an <Entity />, you can just use an aframe-react-components component.

import { Entity } from 'aframe-react';

<Entity primitive='a-box' width='5' />

With aframe-react-components, just use the component directly:

import { Box } from 'aframe-react-components';

<Box width='5' />

Usage

See aframe-react-boilerplate for general usage of aframe-react. See src/components.js for supported components.

Installation

Ensure you have peer dependencies installed from aframe-react.

npm install --save aframe aframe-react react react-dom aframe-react-components

Test

npm test

Future Work

May possibly tie in React PropTypes to components for aid in development.

License

MIT License, Copyright (c) 2016 Jordan Santell