Carousel
A carousel for cycling through slides (images, cards, or any content) with keyboard, swipe, and button navigation. Built on embla-carousel-react; CarouselPrevious/CarouselNext are Buttons wired to the carousel API.
Installation
CLI
Manual
- 1
Register the @fma-ui namespace in components.json (once)
components.json{ "registries": { "@fma-ui": "https://ui.fmartinsandre.dev.br/r/{name}.json" } } - 2
Add the item
pnpm dlx shadcn@latest add @fma-ui/carouselFiles land in
components/fma-ui/carousel.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- cn@^0.4.0embla-carousel-react@^8.6.0lucide-react@^1.52.0
- Registry
- @fma-ui/button