A customizable 3D cube component for React.
To install my-3d-cube, you can use npm:
npm install react-cubify-3d
Here's a basic example of how to use the Cube component:
import React from 'react';
import Cube from 'react-cubify-3d';
function App() {
return (
<div>
<Cube />
</div>
);
}
export default App;
By default, the cube will have a width, height, and depth of 100. You can customize these dimensions using the width, height, and depth props:
<Cube width={150} height={200} depth={100} />
The width of the cube. Defaults to 100.
The height of the cube. Defaults to 100.
The depth of the cube. Defaults to 100.