Final
Generated from public Vue/TypeScript exports by
pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commitfc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.
FinalPage
import { FinalPage } from '@gxp-dev/app-ui'
Flow defaults: action None, result key page name (when data/result is produced).
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
class | string | undefined | undefined | — |
logoImage | string | undefined | undefined | — |
title | string | undefined | 'Thank you!' | — |
mediaType | FinalMediaType | undefined | 'image' | — |
subtitle | string | undefined | undefined | — |
context | Record<string, unknown> | undefined | {} | — |
result | undefined | undefined | — |
imageUrl | string | undefined | undefined | — |
qrUrl | string | undefined | undefined | — |
qrValue | string | undefined | undefined | — |
qrCaption | string | undefined | undefined | — |
watermarkUrl | string | undefined | undefined | — |
watermarkOpacity | string | number | undefined | 0.45 | — |
actions | FinalActionDescriptor[] | undefined | [] | — |
restartLabel | string | undefined | 'Start Over' | — |
showRestart | boolean | undefined | true | — |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
next | [] | — | — |
exit | [] | — | — |
action | [key: string] | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
header | {} | — | — |
result | { imageUrl: string | undefined; result: undefined; } | — | — |
qr | { qrUrl: string | undefined; qrCaption: string | undefined; } | — | — |
actions | { run: (key: string) => void; } | — | — |
footer | { run: (key: string) => void; } | — | — |
Examples
These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import FinalPageComponent from './FinalPage.vue'
{
args: {
logoImage: 'https://placehold.co/160x64?text=Logo',
title: 'Thank you!',
subtitle: 'Scan the QR code to download and share your photo.',
imageUrl: 'https://placehold.co/600x400/9333ea/ffffff?text=Your+Photo',
},
// `actions` is bound outside `args` to avoid Vue's prop/slot name-collision
// type on the StoryObj args object (the `actions` prop and `actions` slot
// share a name). Standard keys (download/share/email/qr/print) get icons.
render: (args) => ({
components: { FinalPage: FinalPageComponent },
setup: () => ({
args,
actions: [
{ key: 'download', label: 'Download' },
{ key: 'share', label: 'Share' },
{ key: 'email', label: 'Email me' },
{ key: 'qr', label: 'Show QR' },
],
}),
template: '<div class="h-screen w-screen"><FinalPage v-bind="args" :actions="actions" /></div>',
}),
}
FullTerminalScreen
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import FinalPageComponent from './FinalPage.vue'
{
args: {
title: 'Thank you!',
imageUrl: 'https://placehold.co/600x600/0ea5e9/ffffff?text=Your+Photo',
watermarkUrl: 'https://placehold.co/600x600/000000/ffffff?text=%20%C2%A9%20EVENT%20',
watermarkOpacity: 0.3,
qrValue: 'https://example.com/share?post=123',
qrCaption: 'Scan to download & share',
},
// `actions` is bound outside `args` to avoid Vue's prop/slot name-collision
// type on the StoryObj args object (the `actions` prop and `actions` slot
// share a name).
render: (args) => ({
components: { FinalPage: FinalPageComponent },
setup: () => ({
args,
actions: [
{ key: 'download', label: 'Download' },
{ key: 'email', label: 'Email' },
{ key: 'print', label: 'Print' },
],
}),
template: `
<div class="h-screen w-screen">
<FinalPage v-bind="args" :actions="actions">
<template #footer>
<div class="mt-6 w-full">
<p class="mb-3 text-sm font-medium text-muted-foreground">Recent posts</p>
<div class="flex flex-wrap justify-center gap-2">
<img v-for="n in 5" :key="n"
:src="\`https://placehold.co/120x120/64748b/ffffff?text=\${n}\`"
class="h-20 w-20 rounded object-cover" alt="" />
</div>
</div>
</template>
</FinalPage>
</div>
`,
}),
}