Drawing
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.
DrawingPage
import { DrawingPage } from '@gxp-dev/app-ui'
Flow defaults: action None, result key drawingBlob (when data/result is produced).
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
class | string | undefined | undefined | — |
submitLabel | string | undefined | "Publish" | — |
logoImage | string | undefined | undefined | — |
forceNoBorderDefault | boolean | undefined | false | — |
highlightColor | string | undefined | "var(--drawing-highlight, #FFD600)" | — |
borderOptions | DrawingFrameOption[] | undefined | [] | — |
prompt | string | undefined | "" | — |
aiMode | boolean | undefined | false | — |
useImage | boolean | undefined | false | — |
submittedPost | Blob | null | undefined | null | — |
penColors | string[] | undefined | ["#00001A", "#000596", "#0008DB", "#6B6FEA", "#D5D6FF", "#EDEDFF"] | — |
backgroundColors | string[] | undefined | ["#D5D6FF", "#9598F0", "#6B6FEA", "#0008DB"] | — |
easelNoBorderOption | boolean | undefined | false | — |
clearTitle | string | undefined | "Are you sure you wish to clear your artboard?" | — |
clearMessage | string | undefined | "If you clear your artboard, your current drawing will disappear." | — |
clearNoLabel | string | undefined | "No" | — |
clearYesLabel | string | undefined | "Yes" | — |
toolbarColor | string | undefined | "var(--drawing-toolbar-background, #F3F3F3)" | — |
borderColorSelected | string | undefined | "var(--drawing-toolbar-foreground, #000000)" | — |
drawingBackground | string | undefined | "none" | — |
artboardBackgroundColor | string | undefined | "transparent" | — |
primaryButtonColorFaded | string | undefined | "var(--drawing-toolbar-faded, rgba(0,0,0,0.1))" | — |
primaryButtonTextColor | string | undefined | "var(--drawing-toolbar-foreground, #000000)" | — |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
back | [] | — | — |
next | [payload: DrawingPagePayload] | — | — |
error | [error: Error] | — | — |
exit | [] | — | — |
broadcast | [event: string, payload: Record<string, unknown>] | — | — |
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 DrawingPageComponent from './DrawingPage.vue'
{
render: () => ({
components: { DrawingPage: DrawingPageComponent },
template: '<div class="h-screen w-screen"><DrawingPage /></div>',
}),
}