Build criteria questions — About block
Proabout-build-criteria-questions · for roadmap, landing pages
Build criteria questions
How the merchant picks what to build, as four questions: explaining the choices, not listing them
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/about-build-criteria-questionsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutBuildCriteriaQuestions from '@/components/trame/blocks/about/about-build-criteria-questions.vue'
const props = {
title: "What we’re working on",
lead: "Each project’s status shows where it stands; it may change over the months.",
criteria: [
{
question: "Does it help people choose better?",
text: "We put first whatever prevents a wrong size or color."
},
{
question: "Does it cut down on returns?",
text: "Every return is one more package and one more disappointment."
}
],
options: {
eyebrow: "Roadmap",
note: "A bar shows how much of the work is done, as the team estimates it."
}
}
</script>
<template>
<AboutBuildCriteriaQuestions v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe roadmap’s title ("What we are preparing") |
| lead | string | Wordsone sentence on how the merchant plans and what a status means |
| criteria* | Criteria[] | the questions an idea must pass, each with how the merchant judges it |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Criteria criteria[] · 2 props
| Prop | Type | Description |
|---|---|---|
| question* | string | Wordsa question an idea must pass |
| text* | string | Wordshow the merchant answers it |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this is ("Roadmap") |
| note | string | Wordswhat a bar or a status measures |
| 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 about section, for roadmap, landing pages; it uses clsx, motion, tailwind-merge.
More about blocks
- Annual letter split: an eyebrow with the period, a title and short parts (what worked, what did not, what comes next): a yearly review the author signs; the merchant’s own only.
- Commitments cards: cards with the rule, its text and what it costs the merchant: when honesty about the trade-off is the point; the merchant’s own only.
- Commitments numbered rows: large numerals, a title and two lines per rule: an ordered list of three to twelve principles; the merchant’s own only.
- Company facts list: a plain label and value list with the claim in prose beside it: the company’s facts in one place; the merchant’s own only.
- Emphasized statement underlined: the conviction set large and centred, one key phrase underlined or highlighted: a short statement with one idea to keep; the merchant’s own only.
- Founder letter: a signed letter in one narrow column, salutation, paragraphs, signature and date: one voice speaking to the customer; the merchant’s own only.
- Intro long prose: a wide headline then up to three paragraphs in a readable column: when there is real story to read.
- Intro rail lead: an editorial about page: the eyebrow as a quiet label in a left rail, the title, a large first paragraph and the others smaller at the right, the action as a text link.