Hanzo AI Studio
A workspace for the part before you write the client. Send a prompt, switch the model under it, read the response, keep what worked. Chat, a playground, and a terminal over the same session — so the thing you tested is the thing you ship.
MODELS
SAVED PROJECTS
This is a live session on zen5. Change the model in the sidebar and ask the same thing again to compare.
I need to create a React component that renders a carousel
Sure! Here's a simple React carousel component using Framer Motion:
jsx
import { motion, AnimatePresence } from 'framer-motion';
import { useState } from 'react';
const Carousel = ({ images }) => {
const [currentIndex, setCurrentIndex] = useState(0);
const handleNext = () => {
setCurrentIndex((prevIndex) =>
prevIndex === images.length - 1 ? 0 : prevIndex + 1
);
};
const handlePrevious = () => {
setCurrentIndex((prevIndex) =>
prevIndex === 0 ? images.length - 1 : prevIndex - 1
);
};
return (
);
};
export default Carousel;
This component takes an array of image URLs and displays them one at a time with animated transitions. You can customize it further based on your specific needs.Up to 5% of compute revenue goes to open source contributors. Connect your GitHub & wallet to earn.
Connect & EarnOpen a real session
Open source
License: Apache-2.0hanzoai