One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
<script setup lang="ts">
import StorefrontCollectionStoryChaptersWithRail from '@/components/trame/blocks/storefront/storefront-collection-story-chapters-with-rail.vue'
const props = {
eyebrow: "Fall edition",
title: "Three chapters for walking into winter",
intro: "From the first leaf-covered trail to the last campsite before the snow: what we pack, chapter by chapter.",
chapters: [
{
title: "October trails",
text: "Shorter days, slippery paths. A jacket that keeps the rain out, soles that grip.",
image: "https://images.unsplash.com/photo-1773515776505-c4e84e9f757e?w=1600&q=80",
alt: "A dirt path lined with trees in fall foliage",
products: [
{
id: 1,
name: "Alpage rain jacket",
price: 18900,
image: "https://images.unsplash.com/photo-1694561418303-16393986b86d?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1694561418303-16393986b86d?w=1600&q=80",
"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?w=1600&q=80"
],
alt: "A man in profile wearing a dark green hooded rain jacket by a misty lake",
rating: 4.6,
reviewCount: 212,
badge: "New",
compareAt: 23900
},
{
id: 2,
name: "Sentier shoes",
price: 12900,
image: "https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
"https://images.unsplash.com/photo-1600100315760-ac46b65f6fdd?w=1600&q=80"
],
alt: "Hiking boots",
rating: 4.4,
reviewCount: 98
}
],
action: {
label: "See all trails",
action: "collection",
record: {
id: "sentiers"
}
}
},
{
title: "Camping by the water",
text: "One night outside is enough to test the gear. Light, compact, easy to pitch in the dark.",
image: "https://images.unsplash.com/photo-1576176539998-0237d1ac6a85?w=1600&q=80",
alt: "Two tents pitched on a meadow above a lake",
products: [
{
id: 3,
name: "Bivouac 40 L backpack",
price: 9500,
image: "https://images.unsplash.com/photo-1602845860431-35374f24f48d?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1602845860431-35374f24f48d?w=1600&q=80",
"https://images.unsplash.com/photo-1678606460531-7ce3b23242a3?w=1600&q=80"
],
alt: "A mustard canvas backpack with leather straps, lying in the grass",
compareAt: 11900
},
{
id: 10,
name: "Two-person tent",
price: 24900,
image: "https://images.unsplash.com/photo-1682868796363-d2fb6a50dd3a?w=1600&q=80",
alt: "An orange tent by a lake, among green hills",
available: false
}
],
action: {
label: "See camping gear",
action: "collection",
record: {
id: "bivouac"
}
}
}
],
open: "product",
addAction: "cart-add",
options: {
showRating: true
}
}
</script>
<template>
<StorefrontCollectionStoryChaptersWithRail v-bind="props" />
</template>
import { StorefrontCollectionStoryChaptersWithRail } from '@/components/trame/blocks/storefront/storefront-collection-story-chapters-with-rail'
const props = {
eyebrow: "Fall edition",
title: "Three chapters for walking into winter",
intro: "From the first leaf-covered trail to the last campsite before the snow: what we pack, chapter by chapter.",
chapters: [
{
title: "October trails",
text: "Shorter days, slippery paths. A jacket that keeps the rain out, soles that grip.",
image: "https://images.unsplash.com/photo-1773515776505-c4e84e9f757e?w=1600&q=80",
alt: "A dirt path lined with trees in fall foliage",
products: [
{
id: 1,
name: "Alpage rain jacket",
price: 18900,
image: "https://images.unsplash.com/photo-1694561418303-16393986b86d?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1694561418303-16393986b86d?w=1600&q=80",
"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?w=1600&q=80"
],
alt: "A man in profile wearing a dark green hooded rain jacket by a misty lake",
rating: 4.6,
reviewCount: 212,
badge: "New",
compareAt: 23900
},
{
id: 2,
name: "Sentier shoes",
price: 12900,
image: "https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
"https://images.unsplash.com/photo-1600100315760-ac46b65f6fdd?w=1600&q=80"
],
alt: "Hiking boots",
rating: 4.4,
reviewCount: 98
}
],
action: {
label: "See all trails",
action: "collection",
record: {
id: "sentiers"
}
}
},
{
title: "Camping by the water",
text: "One night outside is enough to test the gear. Light, compact, easy to pitch in the dark.",
image: "https://images.unsplash.com/photo-1576176539998-0237d1ac6a85?w=1600&q=80",
alt: "Two tents pitched on a meadow above a lake",
products: [
{
id: 3,
name: "Bivouac 40 L backpack",
price: 9500,
image: "https://images.unsplash.com/photo-1602845860431-35374f24f48d?w=1600&q=80",
images: [
"https://images.unsplash.com/photo-1602845860431-35374f24f48d?w=1600&q=80",
"https://images.unsplash.com/photo-1678606460531-7ce3b23242a3?w=1600&q=80"
],
alt: "A mustard canvas backpack with leather straps, lying in the grass",
compareAt: 11900
},
{
id: 10,
name: "Two-person tent",
price: 24900,
image: "https://images.unsplash.com/photo-1682868796363-d2fb6a50dd3a?w=1600&q=80",
alt: "An orange tent by a lake, among green hills",
available: false
}
],
action: {
label: "See camping gear",
action: "collection",
record: {
id: "bivouac"
}
}
}
],
open: "product",
addAction: "cart-add",
options: {
showRating: true
}
}
export function Section() {
return <StorefrontCollectionStoryChaptersWithRail {...props} />
}