Contributor call commission cards — Contact block
Procontact-contributor-call-commission-cards · for journal pages
Contributor call commission cards
Commission formats with explicit scope rows, using the merchant's own rates and delays 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-commission-cardsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import ContactContributorCallCommissionCards from '@/components/trame/blocks/contact/contact-contributor-call-commission-cards.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>
<ContactContributorCallCommissionCards v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| topics* | string[] | Wordsthe topics the journal is looking for |
| steps | Step[] | the steps shown, in order |
| terms | Term[] | the terms, in groups, each row a label and a value |
| cta* | Cta | the call to action: its words and the page action it runs |
| response | string | Wordshow fast contributors get an answer, e.g. "Within two weeks" |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Step steps[] · 2 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe step’s title |
| text* | string | Wordsthe step’s text |
Term terms[] · 2 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe term’s title |
| rows* | Row[] | the term’s rows, in order |
Row terms[].rows[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the value is about |
| value* | string | Wordsthe value, as the merchant states it |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe words on the button or link |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action applies to, passed to the host with it, if any |
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 |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
- Callback request steps form: reassuring steps beside a form that asks for a call back at a slot: services and appointments.
- 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.