The Controlled example from the Carousel docs.
npx shadcn@latest add @hextaui/carousel-controlled
carousel-controlled