Garment cuts columns — Storefront block

Pro

storefront-garment-cuts-columns · for product pages

Garment cuts columns

A range with several cuts (slim, regular, relaxed): the ease of each, side by side

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-garment-cuts-columns

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontGarmentCutsColumns from '@/components/trame/blocks/storefront/storefront-garment-cuts-columns.vue'

const props = {
title: "Find your size",
intro: "Our measurements are taken flat on the finished garment. Compare them with a piece you already wear.",
cuts: [
{
name: "Slim",
fit: "slim",
ease: "+0.8 in at the hips",
details: [
{
label: "Thigh",
value: "10.6 in"
},
{
label: "Leg opening",
value: "6.3 in"
}
],
note: "Close to the body, for slim builds."
},
{
name: "Regular",
fit: "regular",
ease: "+2 in at the hips",
details: [
{
label: "Thigh",
value: "11.8 in"
},
{
label: "Leg opening",
value: "7.1 in"
}
],
note: "Our most-worn fit."
}
]
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe block’s title ("Size guide")
introstringWordshow to read it, or how to measure ("Measure yourself without thick clothing"), as the merchant wrote it
cuts*Cut[]the cuts the garment comes in
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Cut cuts[] · 5 props
PropTypeDescription
name*stringWordsthe cut ("Slim")
fit*stringDesignslim | regular | relaxed: draws the pictogram
easestringWordsthe ease the merchant measured ("+4 cm at the hips")
detailsDetail[]the cut’s measurements or details, each a label and a value
notestringWordsa short note on the cut
Detail cuts[].details[] · 2 props
PropTypeDescription
label*stringWordswhat the value is about
value*stringWordsthe value, as the merchant states it
Options options · 2 props
PropTypeDescription
align'start' | 'center'where each column’s words sit under its pictogram: at the start (the default) or centred
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.

More storefront blocks

  • Floating products staggered: two staggered columns of tall cards whose pictures drift at opposite paces as the page scrolls: an editorial run of 4 to 12 products; the merchant’s own products and figures only.
  • Fulfilment choice cards: a product that can be delivered or picked up: a switch and the stores with their distance and stock.
  • Fulfilment estimator card: a bordered card listing every shipping option with its delay and price: a cart or a product with several carriers.
  • Fulfilment estimator inline: a compact line under the price: a postcode field and the cheapest answer, for a product page that must stay short.
  • Gift amount guide amounts: the merchant wants to say what each amount buys: one column per amount, drawn from the real catalogue.
  • Gift budgets by budget: price bands as large tiles, each opening its shelf: a visitor who starts from what they want to spend.
  • Gift card balance: a customer holds a card and wants to know what is left on it.
  • Gift card buyer: the visitor buys a card for someone: the card on one side, the amount and recipient form on the other.

All 409 storefront blocks