Product Q&A under buy box — Storefront block

Free

storefront-product-qa-under-buy-box · for product pages

Product Q&A under buy box

Compact open disclosures for the buy column; the merchant's own questions and answers only.

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-qa-under-buy-box

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontProductQaUnderBuyBox from '@/components/trame/blocks/storefront/storefront-product-qa-under-buy-box.vue'

const props = {
title: "The details that matter",
intro: "Our advice for this model.",
items: [
{
question: "How do I clean the canvas?",
answer: "Wipe marks with a damp cloth, then let it air-dry. Avoid rubbing the seams."
},
{
question: "Can I remove the shoulder strap?",
answer: "Yes, the clips undo by hand. Store the strap flat so it doesn’t crease."
}
]
}
</script>

<template>
<StorefrontProductQaUnderBuyBox v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordsthe section’s heading
introstringWordsa sentence or two under the heading
items*Item[]the items shown, in order
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 2 props
PropTypeDescription
question*stringWordsthe merchant’s own question about this product
answer*stringWordsthe merchant’s own answer
Options options · 1 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa 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).

MemberWhat it is for
labelyour 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 overview stacked: every picture in full, one under the other, beside a buy box that stays in view (a carousel on a phone): fashion and objects with many photographs, where the pictures sell.
  • Product patina compare: two pictures of the same product, new and worn, split by a handle, with a part-by-part table: durability told by its owner; the merchant’s own only.
  • Product profile scale bars: Labelled scales with a precise marker for roast, body or intensity; the merchant’s own only.
  • Product quick view bottom sheet: a sheet rising from the bottom edge, a small picture beside the name: phones, one thumb away.
  • Product quick view drawer: a side sheet with the picture on top and the choices under it: a catalogue grid that should keep its place at the side.
  • Product quick view split dialog: a centred dialog, the picture on the left and the choices on the right: desktop catalogues where the list stays in view behind.
  • Product rail aside: the heading, arrows and "See all" held in a narrow column on the left and the numbered rail running from it to the edge of the screen: a calm, editorial row for a home page with room to breathe.
  • Product rail peek: one large card and the next ones peeking in from the edge: a featured selection that draws the eye to one product.

All 409 storefront blocks