Routes channels hours — Contact block

Pro

contact-routes-channels-hours · for contact pages

Routes channels hours

Channel rows with their status beside an hours card: when phone, chat and mail each have hours

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-routes-channels-hours

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import ContactRoutesChannelsHours from '@/components/trame/blocks/contact/contact-routes-channels-hours.vue'

const props = {
title: "Write to us",
lead: "Every message is read by a person on the team, not a bot.",
routes: [
{
topic: "A question about an order",
address: "[email protected]",
who: "Noah and Sally",
delay: "Reply within 24 hours, Monday to Friday"
},
{
topic: "A repair",
address: "[email protected]",
who: "Ivy",
delay: "Reply within 3 business days"
}
],
hours: [
{
label: "Tuesday – Friday",
value: "10 a.m. – 6 p.m."
},
{
label: "Saturday",
value: "10 a.m. – 5 p.m."
}
]
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the page offers ("Write to us")
leadstringWordsone sentence on who answers and how
routes*Route[]who to contact for what, each a topic and a way to reach the team
hoursHour[]opening or answering hours: hidden when absent
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Route routes[] · 5 props
PropTypeDescription
topic*stringWordswhat it is for ("A question about an order")
address*stringWordsthe e-mail address, phone number or other way to reach them, exactly as it is
whostringWordswho answers
delaystringWordsthe usual reply time, measured by the merchant ("reply within 24 h")
badgestringWordsa status the merchant can stand behind ("Monday to Friday")
Hour hours[] · 2 props
PropTypeDescription
label*stringWordsthe days or the place ("Monday – Friday")
value*stringWordsthe hours ("9 am – 6 pm")
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
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 contact section, for contact pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.

More contact blocks

  • Idea request form: a visitor can propose an idea: how ideas are handled beside a short form.
  • Inquiry picker stepper panel: three numbered steps at the left (the request, the details, the message) and one panel at the right with back and continue: a longer request, a quote or a project brief; reply times are the merchant’s own measured ones.
  • Inquiry picker tiles then form: a row of choice tiles, the chosen one lit, the form under them with that topic’s reply time and direct way: a contact or demo page with two to six kinds of request; reply times are the merchant’s own measured ones.
  • Intake form: a request with picks and notes (custom order, repair, trade): the fields and one send button.
  • Invite email only: one large address and a secondary action: a tiny business with a single inbox.
  • Invite panel: one tinted panel: the main address as a large button, the people who answer as avatars, the hours in a strip below: a warm single invitation to write.
  • People cards: portrait cards of the named people with what they answer: a small team that wants to be reached directly.
  • Support cards form: reaching a person: the channels with their hours, then the message form to write to them.

All 25 contact blocks