Key list register — Settings block

Pro

settings-key-list-register · for app, settings pages

Key list register

A key register with display prefixes, scopes and usage dates for the merchant’s own keys 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/settings-key-list-register

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import SettingsKeyListRegister from '@/components/trame/blocks/settings/settings-key-list-register.vue'

const props = {
title: "Your workspace connections",
description: "Manage technical access and the events sent to your tools.",
keys: [
{
id: "k1",
name: "Catalog sync",
prefix: "rk_prod_8f2",
scopes: [
"products:read",
"stock:write"
],
created: "October 2, 2026",
lastUsed: "Today, 9:42 a.m.",
revoke: "revoke-key"
},
{
id: "k2",
name: "Accounting export",
prefix: "rk_prod_4c7",
scopes: [
"orders:read"
],
created: "September 28, 2026",
lastUsed: "Yesterday, 6:00 p.m.",
revoke: "revoke-key"
}
],
create: {
label: "Create a connection",
action: "create-connection"
},
options: {
footnote: "Choose the permissions each integration needs."
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s heading
descriptionstringWordsa few words saying more, under the heading
keys*Key[]Datathe API keys
createCreatethe create action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Key keys[] · 7 props
PropTypeDescription
id*string | numberDatathe key’s id
name*stringWordsthe key’s name
prefix*stringDataDisplay prefix only, never a full secret; at most 12 characters
scopes*string[]Wordswhat the key may do
created*stringWordswhen it was created, as the host writes it
lastUsedstringWordswhen it was last used, as the host writes it
revokestringActiona named action of the page
Create create · 2 props
PropTypeDescription
label*stringWordsthe words on the button or link
action*stringActiona named action of the page
Options options · 3 props
PropTypeDescription
footnotestringWordsa small line at the foot of the section
hideTitlebooleanthe page already shows its own title: the block’s heading stays for screen readers only (sr-only), so the section keeps its 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
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: keys[].revoke, create
  • Reads apiKeys from your app

A settings section, for app, settings pages; it uses @lucide/vue.

More settings blocks

  • Integration settings keys webhooks: what developers manage: masked API keys to rotate or revoke and the webhook endpoints.
  • Integration status list: connected services with the state their last check found, a degraded one explained.
  • Integration switch list: a short list of connected apps turned on and off inside a settings page: one row each with a switch, the state named only when it is not operational.
  • Integration table: a developer or admin view auditing 6 to 20 services at once: one table with state, last event, figure and actions per service, an incident spanning its row.
  • Language coverage ledger: A language progress ledger beside the selected language’s keys, using the app’s own counts only.
  • Layout directory: Section tiles above a focused form for settings that need clear descriptions before opening.
  • Layout preference rows: A long settings document with controls aligned beside their labels for regional and account preferences.
  • Layout sidebar: a settings page with several sections: the navigation on the left, the selected section on the right.

All 38 settings blocks