<script setup lang="ts"> import ErrorAccessDeniedGatekeeperCard from '@/components/trame/blocks/error/error-access-denied-gatekeeper-card.vue'
const props = { code: "403", title: "This repository’s review settings are locked", text: "You are signed in to Prooflane; only workspace admins can change how the AI reviewer runs on kitebase/api-gateway.", home: { label: "Back to pull requests", action: "home" }, identity: "[email protected]", gatekeeper: { name: "Priya Raman", grant: "Engineering lead, can give you access" }, request: { label: "Request access", action: "access-request" }, options: { signedInLabel: "Signed in as", note: "Requests notify the admin in Prooflane and by email, and expire after seven days." } } </script>
import { ErrorAccessDeniedGatekeeperCard } from '@/components/trame/blocks/error/error-access-denied-gatekeeper-card'
const props = { code: "403", title: "This repository’s review settings are locked", text: "You are signed in to Prooflane; only workspace admins can change how the AI reviewer runs on kitebase/api-gateway.", home: { label: "Back to pull requests", action: "home" }, identity: "[email protected]", gatekeeper: { name: "Priya Raman", grant: "Engineering lead, can give you access" }, request: { label: "Request access", action: "access-request" }, options: { signedInLabel: "Signed in as", note: "Requests notify the admin in Prooflane and by email, and expire after seven days." } }
export function Section() { return <ErrorAccessDeniedGatekeeperCard {...props} /> }
Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
Prop
Type
Description
code
string
Wordsthe short code or word that names the page ("404", "Offline")
title*
string
Wordswhat happened, plainly ("This page cannot be found")
text*
string
Wordsone sentence: why, and what the visitor can do
home*
Home
the link home: its words and the page action it runs
identity
string
Wordsthe signed-in address the page acknowledges
gatekeeper
Gatekeeper
who can grant the access
request*
Request
asking the person who can grant access
options
Options
the block’s settings: layout choices and secondary words, read by every variant
Homehome · 3 props
Prop
Type
Description
label*
string
Wordswhat happens ("Back to the home page")
action*
string
Actiona named action of the page
record
Record<string, unknown>
Datathe record the action opens (a category), if any
Gatekeepergatekeeper · 7 props
Prop
Type
Description
id
string | number
Datathe record’s id in the tool that answers it
name*
string
Wordsthe person’s name
role
string
Wordstheir role or job title
company
string
Wordswhere they work
avatar
string
Picturea picture: a root-relative path (/media/…) or an absolute URL
url
string
Designa page about them
grant
string
Wordswhat this person can do ("Admin, can give you access")
Requestrequest · 3 props
Prop
Type
Description
label*
string
Wordswhat happens ("Back to the home page")
action*
string
Actiona named action of the page
record
Record<string, unknown>
Datathe record the action opens (a category), if any
Optionsoptions · 6 props
Prop
Type
Description
signedInLabel
string
Wordsthe label above the signed-in address ("Signed in as")
note
string
Wordsthe reassurance under the form or the request ("A new link makes the old ones unusable")
contact
Contact
the contact action: its words and the page action it runs
report
Report
the report action: its words and the page action it runs
status
Status
the link to the status page: its words and the page action
mood
'inverse' | 'brand' | 'warm' | 'tint' | string
a band of the page that redefines the theme surfaces inside it
Contactoptions.contact · 3 props
Prop
Type
Description
label*
string
Wordswhat happens ("Back to the home page")
action*
string
Actiona named action of the page
record
Record<string, unknown>
Datathe record the action opens (a category), if any
Reportoptions.report · 3 props
Prop
Type
Description
label*
string
Wordswhat happens ("Back to the home page")
action*
string
Actiona named action of the page
record
Record<string, unknown>
Datathe record the action opens (a category), if any
Statusoptions.status · 3 props
Prop
Type
Description
label*
string
Wordswhat happens ("Back to the home page")
action*
string
Actiona named action of the page
record
Record<string, unknown>
Datathe record the action opens (a category), if any
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
asset
a picture’s address as your app serves it
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: home, request, options.contact, options.report, options.status
Reads categories from your app
A error section, for any pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.
More error blocks
Expired link form: a link that ran out (sign-in, invitation, share): what the app recorded about it and a form for a fresh one.
Message centered: a 404 or 500 that keeps to the point: a big code, the reason, the way home.
Page full bleed: a page with one strong picture: the words laid over it on a scrim.
Recovery search links: a lost visitor on a shop with a catalogue: a search field and helpful links, plus a way to report a broken link.
Way back split image: a page with room for the shop’s mood: the words and the ways back on one side, its picture on the other.