Story Cards

A responsive, accessible story cards carousel for React applications built with Tailwind CSS and Framer Motion.

What's happening

Discover the latest stories.

Technology infrastructure
Modern office interior

Annual letter 2025

We survived another year of meetings, deadlines, bugs, and pretending everything was part of the plan.

Read the damage
Team collaborating in an office
Person exploring a landscape
Technology infrastructure
Modern office interior

We survived another year of meetings, deadlines, bugs, and pretending everything was part of the plan.

Read the damage

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/story-card

API Reference

PropTypeDefaultDescription
cardsStoryCard[]undefinedArray of story cards containing title, image, description, and optional link information
initialIndexnumber0Index of the story displayed initially
loopbooleantrueEnables endless circular scrolling through the cards
enableWheelScrollbooleantrueAllows trackpad or mouse wheel gestures to scroll through cards
autoPlaybooleanfalseAutomatically advances through the story cards
autoPlayIntervalnumber5000Time in milliseconds between automatic story transitions
showNavigationbooleantrueControls whether previous and next navigation buttons are displayed
titlestring"What's happening"Custom title heading for the story cards section
subtitlestring"Discover the latest stories."Custom subtitle for the story cards section
classNamestringundefinedOptional custom Tailwind styling for the component wrapper