Contributor call split steps — Contact block

Pro

contact-contributor-call-split-steps · for journal pages

Contributor call split steps

Topics beside an ordered pitch process, with the merchant's own terms 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/contact-contributor-call-split-steps

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import ContactContributorCallSplitSteps from '@/components/trame/blocks/contact/contact-contributor-call-split-steps.vue'

const props = {
title: "Your perspective belongs here",
topics: [
"Skills passed down by hand",
"The life of repaired objects"
],
steps: [
{
title: "Pitch an idea",
text: "Tell us your angle and the people you’d like to meet."
},
{
title: "Shape the story",
text: "Together we settle the format and terms before you start."
}
],
terms: [
{
title: "Workshop story",
rows: [
{
label: "Format",
value: "A story with photographs"
},
{
label: "Terms",
value: "Agreed before the commission"
}
]
}
],
cta: {
label: "Pitch a story",
action: "pitch"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s heading
topics*string[]Wordsthe topics the journal is looking for
stepsStep[]the steps shown, in order
termsTerm[]the terms, in groups, each row a label and a value
cta*Ctathe call to action: its words and the page action it runs
responsestringWordshow fast contributors get an answer, e.g. "Within two weeks"
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Step steps[] · 2 props
PropTypeDescription
title*stringWordsthe step’s title
text*stringWordsthe step’s text
Term terms[] · 2 props
PropTypeDescription
title*stringWordsthe term’s title
rows*Row[]the term’s rows, in order
Row terms[].rows[] · 2 props
PropTypeDescription
label*stringWordswhat the value is about
value*stringWordsthe value, as the merchant states it
Cta cta · 3 props
PropTypeDescription
label*stringWordsthe words on the button or link
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
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
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

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
  • Asks your app through actions: cta

A contact section, for journal pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.

More contact blocks

  • Community channels: Channel cards with a clear destination, using the merchant's own community only.
  • Community guidelines split: A quiet introduction and figures beside numbered rules, the merchant's own only.
  • Community quote band: A member quotation as the invitation, the merchant's own collected quote only.
  • Community stats banner: A compact invitation with people and supplied figures, the merchant's own only.
  • Directory: a table of topic, who answers, address and reply time: a larger house with many inboxes, looked up rather than read.
  • Feedback form criteria rows: an overall rating on top, then a ruled list of aspects each with its own rating, one comment at the end: when the merchant wants a mark per aspect (delivery, packaging, support).
  • Feedback form panel: one card with the rating, the comment and the button: one or two questions after a visit, an order or a delivery.
  • Feedback form scale strip: the words beside wide 1-to-5 tracks that name the chosen level: a quick satisfaction pulse of one to three questions.

All 25 contact blocks