Skip to main content
Version: v1 (Current)

Notepad

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.

NotepadPage​

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

Repository source

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

Props​

NameTypeRequired / defaultDescription
titlestring | undefined——
cardLabelstring | undefined—Label above the note card.
placeholderstring | undefined—Placeholder shown in the empty card.
penColorLabelstring | undefined——
backgroundColorLabelstring | undefined——
submitLabelstring | undefined——
backLabelstring | undefined——
exitLabelstring | undefined——
logoImagestring | undefined——
maxCharactersnumber | undefined—Max characters the card accepts.
penColorsstring[] | undefined—Selectable pen (text) colours; the first is the default.
backgroundColorsstring[] | undefined—Selectable card background colours; the first is the default.
showPinboolean | undefined—Draw a pin at the top of the rendered note.
showFoldboolean | undefined—Draw a folded corner on the rendered note.
autoFitboolean | undefined—Shrink the typed text to fit the card.
onScreenKeyboardboolean | undefined—Show an on-screen keyboard for the note (kiosks without a physical one).
showBackboolean | undefined——
showExitboolean | undefined——

Events​

NameTypeRequired / defaultDescription
back[]——
next[payload: NotepadPagePayload]——
exit[]——

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 NotepadPageComponent from './NotepadPage.vue'
{
args: {
logoImage: 'https://placehold.co/120x60?text=Logo',
title: 'What would you like to share?',
},
render: (args) => ({
components: { NotepadPage: NotepadPageComponent },
setup: () => ({ args }),
template: '<div class="h-screen w-screen"><NotepadPage v-bind="args" /></div>',
}),
}

StickyNote​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import NotepadPageComponent from './NotepadPage.vue'
{
args: {
title: 'Leave a note',
showPin: true,
showFold: true,
autoFit: true,
backgroundColors: ['#fde68a', '#bbf7d0', '#bfdbfe', '#fbcfe8'],
penColors: ['#1f2937', '#7c2d12', '#1e3a8a'],
},
render: (args) => ({
components: { NotepadPage: NotepadPageComponent },
setup: () => ({ args }),
template: '<div class="h-screen w-screen"><NotepadPage v-bind="args" /></div>',
}),
}