Reel
Reel coordinates the active item, playback and muted state over supplied media data.
Practical React example
Browse a small collection of short videos with explicit playback and sound controls.
Before you copy and paste
Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/reel/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button progress.
Listed package dependencies: @radix-ui/react-use-controllable-state, lucide-react, motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Browse a small collection of short videos with explicit playback and sound controls
// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";
import {
Reel,
ReelContent,
ReelControls,
ReelItem,
ReelMuteButton,
ReelNavigation,
ReelNextButton,
ReelPlayButton,
ReelPreviousButton,
ReelProgress,
ReelVideo,
} from "@/components/kibo-ui/reel";
const reels: ReelItem[] = [
{
id: 1,
type: "video",
src: "https://wajxiz6qhqyqkm0o.public.blob.vercel-storage.com/grok-imagine-1.mp4",
duration: 6,
title: "Grok Imagine Demo 1",
description: "First demo video",
},
{
id: 2,
type: "video",
src: "https://wajxiz6qhqyqkm0o.public.blob.vercel-storage.com/grok-imagine-2.mp4",
duration: 6,
title: "Grok Imagine Demo 2",
description: "Second demo video",
},
{
id: 3,
type: "video",
src: "https://wajxiz6qhqyqkm0o.public.blob.vercel-storage.com/grok-imagine-3.mp4",
duration: 6,
title: "Grok Imagine Demo 3",
description: "Third demo video",
},
];
const Example = () => (
<Reel data={reels}>
<ReelProgress />
<ReelContent>
{(reel) => (
<ReelItem key={reel.id}>
<ReelVideo src={reel.src} />
</ReelItem>
)}
</ReelContent>
<ReelNavigation />
<ReelControls>
<ReelPreviousButton />
<div className="flex gap-2">
<ReelPlayButton />
<ReelMuteButton />
</div>
<ReelNextButton />
</ReelControls>
</Reel>
);
export default Example;
Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.
Use supported media sources and stable item IDs, and choose autoPlay deliberately. Keep the playing state aligned with actual playback outcomes when controlling it.
Customization
- ReelProps.data
- Required; ReelItem[].
- ReelProps.defaultIndex
- Optional; number.
- ReelProps.index
- Optional; number.
- ReelProps.onIndexChange
- Optional; (index: number) => void.
- ReelProps.defaultPlaying
- Optional; boolean.
- ReelProps.playing
- Optional; boolean.
- ReelProps.onPlayingChange
- Optional; (playing: boolean) => void.
- ReelProps.defaultMuted
- Optional; boolean.
- ReelProps.muted
- Optional; boolean.
- ReelProps.onMutedChange
- Optional; (muted: boolean) => void.
- ReelProps.autoPlay
- Optional; boolean.
- ReelContentProps.children
- Required; (item: ReelItem, index: number) => ReactNode.
- ReelImageProps.alt
- Required; string.
- ReelImageProps.duration
- Optional; number.
Integration notes
- Provide captions or equivalent text and a way to stop playback.
- Test autoplay restrictions, media failures and whether off-screen items continue consuming resources.
Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.