import type { ComponentType } from "react";

/* Rotation Example */
export function Rotate(Component): ComponentType {
	return (props) => {
		return (
			<Component
				{...props}
				animate={{ rotate: 360 }}
				transition={{ duration: 10, ease: "linear", repeat: Infinity }}
			/>
		);
	};
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.