Skip to main content
Version: v1 (Current)

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 commit fc6bfb108634735f1657e533206c3f8702ad357d; 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'

Repository source

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

Props​

NameTypeRequired / defaultDescription
classstring | undefinedundefined—
submitLabelstring | undefined"Publish"—
logoImagestring | undefinedundefined—
forceNoBorderDefaultboolean | undefinedfalse—
highlightColorstring | undefined"var(--drawing-highlight, #FFD600)"—
borderOptionsDrawingFrameOption[] | undefined[]—
promptstring | undefined""—
aiModeboolean | undefinedfalse—
useImageboolean | undefinedfalse—
submittedPostBlob | null | undefinednull—
penColorsstring[] | undefined["#00001A", "#000596", "#0008DB", "#6B6FEA", "#D5D6FF", "#EDEDFF"]—
backgroundColorsstring[] | undefined["#D5D6FF", "#9598F0", "#6B6FEA", "#0008DB"]—
easelNoBorderOptionboolean | undefinedfalse—
clearTitlestring | undefined"Are you sure you wish to clear your artboard?"—
clearMessagestring | undefined"If you clear your artboard, your current drawing will disappear."—
clearNoLabelstring | undefined"No"—
clearYesLabelstring | undefined"Yes"—
toolbarColorstring | undefined"var(--drawing-toolbar-background, #F3F3F3)"—
borderColorSelectedstring | undefined"var(--drawing-toolbar-foreground, #000000)"—
drawingBackgroundstring | undefined"none"—
artboardBackgroundColorstring | undefined"transparent"—
primaryButtonColorFadedstring | undefined"var(--drawing-toolbar-faded, rgba(0,0,0,0.1))"—
primaryButtonTextColorstring | undefined"var(--drawing-toolbar-foreground, #000000)"—

Events​

NameTypeRequired / defaultDescription
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>',
}),
}