Stories
Stories composes carousel items, media and optional author details.
Practical React example
Browse a finite set of image or video stories with visible author and content context.
Before you copy and paste
Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/stories/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 avatar carousel.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Browse a finite set of image or video stories with visible author and content context
// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";
import {
Stories,
StoriesContent,
Story,
StoryAuthor,
StoryAuthorImage,
StoryAuthorName,
StoryOverlay,
StoryVideo,
} from "@/components/kibo-ui/stories";
const stories = [
{
id: 1,
author: "Alex Johnson",
avatar:
"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=40&h=40&fit=crop&crop=face",
fallback: "AJ",
video:
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4#t=20",
},
{
id: 2,
author: "Sarah Chen",
avatar:
"https://images.unsplash.com/photo-1494790108755-2616b612b786?w=40&h=40&fit=crop&crop=face",
fallback: "SC",
video:
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4#t=20",
},
{
id: 3,
author: "Mike Rodriguez",
avatar:
"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=40&h=40&fit=crop&crop=face",
fallback: "MR",
video:
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4",
},
{
id: 4,
author: "Emma Wilson",
avatar:
"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=40&h=40&fit=crop&crop=face",
fallback: "EW",
video:
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4",
},
{
id: 5,
author: "David Kim",
avatar:
"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=40&h=40&fit=crop&crop=face",
fallback: "DK",
video:
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4",
},
];
const Example = () => (
<Stories>
<StoriesContent>
{stories.map((story) => (
<Story className="aspect-[3/4] w-[200px]" key={story.id}>
<StoryVideo src={story.video} />
<StoryOverlay />
<StoryAuthor>
<StoryAuthorImage
fallback={story.fallback}
name={story.author}
src={story.avatar}
/>
<StoryAuthorName>{story.author}</StoryAuthorName>
</StoryAuthor>
</Story>
))}
</StoriesContent>
</Stories>
);
export default Example;
Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.
Use stable story IDs and descriptive image alternatives, and connect playback to the active story. Keep author data limited to what the viewer may see.
Customization
- StoryImageProps.alt
- Required; string.
- StoryAuthorImageProps.src
- Optional; string.
- StoryAuthorImageProps.name
- Optional; string.
- StoryAuthorImageProps.fallback
- Optional; string.
- StoryOverlayProps.side
- Optional; "top" | "bottom".
Integration notes
- Provide captions or text alternatives for video and a way to pause or navigate without swiping.
- The carousel does not upload media, authenticate authors or persist a viewed state.
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.