Featured Card Carousel

Installation

Run the following command

npx vibes@latest add featured-card-carousel

Usage

import { FeaturedCardCarousel } from '@/vibes/soul/sections/featured-card-carousel';function Usage() {  return (    <FeaturedCardCarousel        cards={cards}        cta={{ label: 'Shop all', href: '/all' }}        description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."        title="Categories"    />  );}const cards: CategoryCardContent[] = [  {    title: 'Mini Bar Bag',    image: {      src: 'https://storage.googleapis.com/s.mkswft.com/RmlsZTo1YzIwNTljMi04NzcwLTRiM2ItYmIzMy02ZTk0ODNkY2M5MDk=/mini-bar-bag.jpeg',      alt: 'Mini Bar Bag',    },    href: '#',  }]

API Reference

FeaturedCardCarouselProps

PropTypeDefault
title*
string
description
string
cta
Link
cards*
Streamable<CategoryCardContent[]>
scrollbarLabel
string

CategoryCardContent

PropTypeDefault
title*
string
image
Image
href
string
PropTypeDefault
label*
string
href*
string

Image

PropTypeDefault
src*
string
alt*
string

CSS Variables

This component supports various CSS variables for theming. Here's a comprehensive list.

:root {  --featured-card-carousel-font-family: var(--font-family-body);  --featured-card-carousel-title-font-family: var(--font-family-body);  --featured-card-carousel-title: var(--foreground);  --featured-card-carousel-description: var(--contrast-500);}