Product specs definition list — Storefront block
Prostorefront-product-specs-definition-list · for product pages
Product specs definition list
Technical details as labelled rows, grouped and collapsible: the default for any product with specifications
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/storefront-product-specs-definition-listUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontProductSpecsDefinitionList from '@/components/trame/blocks/storefront/storefront-product-specs-definition-list.vue'
const props = {
title: "Specifications",
intro: "Measured on the finished product, in our workshop.",
groups: [
{
title: "Dimensions",
rows: [
{
label: "Height",
value: "20.5 in"
},
{
label: "Width",
value: "11.8 in"
}
]
},
{
title: "Materials",
rows: [
{
label: "Outside",
value: "Coated cotton canvas, 12.4 oz/yd²"
},
{
label: "Lining",
value: "Recycled polyester"
}
]
}
],
measurements: [
{
label: "Height",
value: "20.5 in"
},
{
label: "Width",
value: "11.8 in"
}
]
}
</script>
<template>
<StorefrontProductSpecsDefinitionList v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe block’s title ("Features") |
| intro | string | Wordsone sentence on what the details cover |
| groups* | Group[] | the groups shown, in order |
| summary | string | Wordsan honest line on the results or the changes, as the merchant wrote it |
| measurements | Measurement[] | the product’s measurements, each a label and a value |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Group groups[] · 2 props
| Prop | Type | Description |
|---|---|---|
| title | string | Wordsthe group ("Dimensions", "Materials") |
| rows* | Row[] | the group’s rows, in order |
Row groups[].rows[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the value is about |
| value* | string | Wordsthe value, as the merchant states it |
Measurement measurements[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the value is about |
| value* | string | Wordsthe exact measurement supplied by the merchant |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| label | your word for an interface key, or undefined to keep the block’s own |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
A storefront section, for product pages; it uses @lucide/vue.
More storefront blocks
- Product showcase annotated: each card carries one plain fact on why it is here: back today, retired, 61 of 200 left; the merchant’s own products and figures only.
- Product showcase masonry: columns of cards of different heights: photo-led catalogues with mixed picture shapes; the merchant’s own products and figures only.
- Product showcase ranked: numbered chips and a count line under each card: best sellers, when real sales data and its period exist; the merchant’s own products and figures only.
- Product showcase sale honest: a percent badge, the former price struck and a stock note: a sale where the former price is real; the merchant’s own products and figures only.
- Product showcase size run: each card shows its sizes, the unavailable ones struck through: clothing and shoes with real stock by size; the merchant’s own products and figures only.
- Product spotlight index: a numbered list of large product names and prices with one picture beside it that follows the name under the pointer, the lead product first: a range whose names carry it (four to twelve pieces), type-led and quiet; the merchant’s own products and figures only.
- Product spotlight: one product large with its facts, the others as thumbnails that swap it: a hero product among a range; the merchant’s own products and figures only.
- Product story chapters: the buy card first, beside one picture, then the story as numbered chapters with picture and words alternating sides: a product bought on its specification first, whose story rewards those who scroll on.