LinearCard
A draggable carousel of cards that can be swiped horizontally. Selecting a card opens an expanded detail overlay with smooth shared‑element transitions.
LinearCard
A draggable carousel of cards that can be swiped horizontally. Selecting a card opens an expanded detail overlay with smooth shared‑element transitions.
Use Cases
- Feature cards with expandable details
- Team member cards with bios
- Project/portfolio showcase
- Product cards with descriptions and tags
Properties
items
Array of card objects. Type: array.
customCss
Custom CSS property pairs. Type: string.
Best Practices
- Use 3-6 cards for the best carousel experience
- Always include images — the card relies heavily on visual appeal
- Keep titles short (2-4 words)
- Write detailed descriptions (2-4 sentences) — they’re shown in the expanded dialog
- Use 3-5 tags per card for visual richness
Common Mistakes
Using only 1-2 cards
Why it's a problem: The draggable carousel has no content to scroll through
Fix: Use at least 3 cards to make the drag interaction meaningful
Leaving description empty
Why it's a problem: The expanded dialog will be nearly empty — bad user experience
Fix: Write 2-4 sentences describing the card’s topic in detail