Refund delays bars — Storefront block
Prostorefront-refund-delays-bars · for checkout, cart, product pages
Refund delays bars
Refund delays by method: one row each, a bar sized to the delay and the delay written out
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-refund-delays-barsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontRefundDelaysBars from '@/components/trame/blocks/storefront/storefront-refund-delays-bars.vue'
const props = {
title: "Refund times",
intro: "How long it takes depends on how you paid.",
items: [
{
heading: "Credit or debit card",
body: "3 to 5 business days after we receive your return.",
days: 5
},
{
heading: "PayPal",
body: "Instant: your balance is credited as soon as the return is approved.",
days: 1
}
]
}
</script>
<template>
<StorefrontRefundDelaysBars v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the block answers ("How payment works") |
| intro | string | Wordsone sentence on what the delay depends on |
| items* | Item[] | the delays by method the merchant can stand behind; each is their own policy |
| caveat | string | Wordsone line of fine print, only if the merchant has one |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 3 props
| Prop | Type | Description |
|---|---|---|
| heading* | string | Wordsa short question or fact ("When is my card charged?") |
| body* | string | Wordsone sentence, the merchant’s real policy ("At shipping, never before.") |
| days | number | the delay in days, to size the bar; the text still carries the value |
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
- No motion; still under reduced motion
- Real buttons and links, a visible focus
A storefront section, for checkout, cart, product pages.
More storefront blocks
- Referral hero: the programme is a page of its own: a big promise, what each side gets as two cards joined by a plus, the link to copy.
- Referral invite code beside: a referral programme: the rules on one side, the visitor’s own code to copy on the other.
- Referral steps numbered: a landing section that explains how it works: three numbered steps, each side’s reward and the link under them.
- Refund choice side by side: two or three outcomes in columns (card refund, credit, exchange), each with its delay and steps: the choice is the point.
- Reissue offer split: The selected item's picture beside its production facts and reservation link; the merchant's own result only.
- Rental availability calendar: a month grid where booked days are struck out, the total beside it: a rental whose availability is the deciding factor.
- Rental booking card split: a booking card beside the item’s picture and its rate table: a product page for an item rented by the day.
- Rental dates inline: a wide booking bar: two date fields, the extras and the total side by side: a rental page where the dates are the first question.