Media Carousel Controls
Photo and video gallery of a project with a counter and access to each asset's detail.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Photo and video gallery of a project with a counter and access to each asset's detail.
- Product image carousel with direct selection by thumbnail or dot.
- Campaign hero with autoplay that pauses on mouse hover or when focusing a button.
Includes
- Controlled index
- Previous next navigation
- Direct slide selection
- Touch swipe navigation
- Keyboard navigation
- Optional loop
- Pausable autoplay
- Reduced motion fallback
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add media-carousel-controlsInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/media-carousel-controlsUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
clsxlucide-reacttailwind-merge- Registry dependencies
lib-primitiveslib-tokens- Files
3 files
- components/agentic-ui/media-carousel-controls/media-carousel-controls.tsx
- components/agentic-ui/media-carousel-controls/utils.ts
- components/agentic-ui/media-carousel-controls/carousel-model.ts
Related components
Media Clip Range Selector
Trim a fixed 15-second clip out of a 60-second interview recording.
Details and live previewA11y Contrast Badge
Check in the browser whether the theme palette meets AA before opening the PR.
Details and live previewA11y Focus Manager
Confirmation dialog that returns focus to the button that opened it.
Details and live previewA11y Live Announcer
Announce the number of results when filtering a table without reloading the page.
Details and live preview