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 commitfc6bfb108634735f1657e533206c3f8702ad357d; 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'
Flow defaults: action None, result key note (when data/result is produced).
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
title | string | undefined | — | — |
cardLabel | string | undefined | — | Label above the note card. |
placeholder | string | undefined | — | Placeholder shown in the empty card. |
penColorLabel | string | undefined | — | — |
backgroundColorLabel | string | undefined | — | — |
submitLabel | string | undefined | — | — |
backLabel | string | undefined | — | — |
exitLabel | string | undefined | — | — |
logoImage | string | undefined | — | — |
maxCharacters | number | undefined | — | Max characters the card accepts. |
penColors | string[] | undefined | — | Selectable pen (text) colours; the first is the default. |
backgroundColors | string[] | undefined | — | Selectable card background colours; the first is the default. |
showPin | boolean | undefined | — | Draw a pin at the top of the rendered note. |
showFold | boolean | undefined | — | Draw a folded corner on the rendered note. |
autoFit | boolean | undefined | — | Shrink the typed text to fit the card. |
onScreenKeyboard | boolean | undefined | — | Show an on-screen keyboard for the note (kiosks without a physical one). |
showBack | boolean | undefined | — | — |
showExit | boolean | undefined | — | — |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
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>',
}),
}