/react-cube-3d

React cube-3d UI component

Primary LanguageJavaScriptMIT LicenseMIT

React cube3d UI component

Zero dependency

Touch support


Install

npm install --save react-cube3d-component

Usage

DEMO

import React from 'react';
import Cube from 'react-cube3d-component';

function App() {
  return (
        <Cube cubeSize='300px' viewportSize='500px'>
          <div>Front</div>
          <div>Back</div>
          <div>Right</div>
          <div>Left</div>
          <div>Top</div>
          <div>Bottom</div>
        </Cube>
  );
}