Skip to main content
Version: v1 (Current)

Terms

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 commit fc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.

TermsPage​

import { TermsPage } from '@gxp-dev/app-ui'

Repository source

Flow defaults: action None, result key termsAccepted (when data/result is produced).

Props​

NameTypeRequired / defaultDescription
titlestring | undefined—Heading (rendered as HTML).
subtitlestring | undefined—Sub-heading under the title (rendered as HTML).
htmlstring | undefined—Terms body HTML (rendered with v-html — sanitise upstream).
agreementTextstring | undefined—Checkbox consent label (rendered as HTML).
submitLabelstring | undefined——
backLabelstring | undefined——
exitLabelstring | undefined——
logoImagestring | undefined—Logo shown between the back / exit buttons.
bodyColorstring | undefined—Text / background colour of the scrollable terms body.
bodyBackgroundstring | undefined——
requireAcceptboolean | undefined—Require the consent checkbox before continuing.
requireScrollboolean | undefined—Require the user to scroll the terms body to the bottom before they can accept. Content that fits without scrolling counts as read.
scrollHintstring | undefined——
showBackboolean | undefined——
showExitboolean | undefined——

Events​

NameTypeRequired / defaultDescription
back[]——
next[{ accepted: true; }]——
exit[]——

Slots​

NameTypeRequired / defaultDescription
header{ back: () => void; exit: () => void; }——
body{}——
actions{ accept: () => void; back: () => void; canContinue: boolean; scrolledToEnd: boolean; }——

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 TermsPageComponent from './TermsPage.vue'
{
args: {
logoImage: 'https://placehold.co/120x60?text=Logo',
title: 'Terms & Conditions',
subtitle: 'Please read and accept to continue.',
html: LONG_TERMS,
bodyBackground: '#ffffff',
bodyColor: '#222222',
},
render: (args) => ({
components: { TermsPage: TermsPageComponent },
setup: () => ({ args }),
template: '<div class="h-screen w-screen"><TermsPage v-bind="args" /></div>',
}),
}

RequireScroll​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import TermsPageComponent from './TermsPage.vue'
{
args: {
title: 'Terms &amp; Conditions',
html: LONG_TERMS,
requireScroll: true,
bodyBackground: '#ffffff',
bodyColor: '#222222',
},
render: (args) => ({
components: { TermsPage: TermsPageComponent },
setup: () => ({ args }),
template: '<div class="h-screen w-screen"><TermsPage v-bind="args" /></div>',
}),
}