Components
Loading preview...
Cube animation, tweak the rotation speed, axis and cube color!
npx shadcn@latest add https://21st.dev/r/montekkundan/ascii-cube// This is file with demos of your component
// Each export is one usecase for your component
import CubeAnimation from "@/components/ui/ascii-cube";
const DemoBasic = () => {
return <CubeAnimation />;
};
const DemoColoured = () => {
return <CubeAnimation
color={true}
edges={false}
speedB={0.04}
speedC={0.04}
axis="yz"
// backfaceCulling={false}
/>
};
const DemoWireframe = () => {
return <CubeAnimation
wireframe={true}
speedA={0.04}
axis="x"
/>
};
export { DemoBasic, DemoColoured, DemoWireframe };