Connection map hub — Integrations block

Pro

integrations-connection-map-hub · for home, landing, app pages

Connection map hub

3 to 8 connections around the merchant’s own centre, lines between: explaining where the data goes

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/integrations-connection-map-hub

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import IntegrationsConnectionMapHub from '@/components/trame/blocks/integrations/integrations-connection-map-hub.vue'

const props = {
title: "The tools you use every day, already connected",
intro: "Shipping, payments, accounting: what you already use connects to your store, with no retyping.",
items: [
{
name: "Relay Express",
logo: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Crect%20width%3D%2248%22%20height%3D%2248%22%20rx%3D%2210%22%20fill%3D%22hsl(20%2045%25%2045%25)%22%2F%3E%3Ctext%20x%3D%2224%22%20y%3D%2232%22%20font-size%3D%2224%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%20font-family%3D%22sans-serif%22%3ER%3C%2Ftext%3E%3C%2Fsvg%3E",
category: "Shipping",
text: "Pickup-point delivery, with the label created at checkout.",
action: "page",
record: {
id: "relais"
}
},
{
name: "Doorstep Transport",
icon: "truck",
category: "Shipping",
text: "Home delivery in a time slot the customer picks."
}
],
cta: {
label: "See all connections",
action: "page",
record: {
id: "connexions"
}
},
options: {
hub: "My store"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s title, an h2
introstringWordsone or two sentences under the title
items*Item[]the items shown, in order
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 8 props
PropTypeDescription
name*stringWordsthe partner, carrier, payment method or tool, as the merchant names it
logostringPicturethe partner’s logo, supplied by the merchant (never bundled)
iconstringDesigna pictogram when there is no logo (plug, truck, card, store, mail, message, package, cloud, chart, calendar, tag, users)
categorystringWordsthe kind it belongs to ("Delivery", "Payment")
textstringWordsone sentence on what the connection does
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
statusstringWordsa few words, as the merchant writes it ("Soon", "Beta")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("See all connections")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
hubstringWordsthe name at the centre of the hub diagram (the merchant’s own name)
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
asseta picture’s address as your app serves it
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
  • Expressive motion, within its budget; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: items[], cta

A integrations section, for home, landing, app pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More integrations blocks

  • Category columns: a long catalogue sorted by kind, names as text in columns, no logos needed: many connections, one glance — the merchant’s own only.
  • Connection directory filter grid: 12 or more connections, category chips filter the cards; everything stays in the page for search engines — the merchant’s own only.
  • Grid tiles: 4 to 12 connections, each a tile with its logo, name and one sentence: the plain, readable default — the merchant’s own only.
  • Lead bento: the first connection as a large tile, the others around it: one integration the merchant puts forward (4 to 9).
  • Logo chips band: a flat list of partners, carriers, payment methods or languages as a wrapped band of pills: short and light — the merchant’s own only.
  • Orbit arcs scatter: the merchant’s connections as tiles scattered around a centred title, its own mark above it, nudged away by the pointer (a grid of tiles under the words on a phone): a playful "plays well with" band, where the logos themselves are the picture.
  • Orbit arcs side: the words at the start, three dotted orbits at the end cropped by the panel as if the system went on, the merchant’s connections on them around its own mark, turning a little with the scroll (chips under the words on a phone): an integrations band beside a pitch, for a product that sits at the centre of a larger set of tools.
  • Orbit arcs: two half-arcs rising behind a centred title, the connections set on them and the merchant’s own mark at their foot when given (chips under the words on a phone): a calm "works with what you use" band of 3 to 12 names, where ConnectionMap’s lines would say too much.

All 11 integrations blocks