Skip to main content
Version: v1 (Current)

@gxp-dev/app-ui

A Vue component library for GxP apps, combining primitives based on shadcn-vue/Reka UI with platform components, forms and experience pages. The current source requires Vue 3.5 or later. Start with installation to verify your installed version, runtime and stylesheet setup.

Overview​

The package exports primitives for inputs, buttons, dialogs and navigation; domain components for media, scanning, questions and collections; form renderers; composables; and Experience Flow orchestration. The generated reference lists the declared public API at its pinned source commit. Match those contracts to your installed package before adopting an export: a reviewed source change does not establish that it has been published to the registry.

Use AppUI for the presentation and interaction layer. Your app still owns platform authentication, dependency/resource bindings, API payloads and record persistence. Camera, microphone, scanning, media playback and printing also need acceptance tests on the intended browser, device and portal.

Technology Stack​

LayerTechnology
FrameworkVue 3.5+ (Composition API)
LanguageTypeScript
Primitivesshadcn-vue (Reka UI + Tailwind)
StylingTailwind 4 + platform CSS variables
BuildVite (library mode)
TestingVitest + Vue Test Utils
DocumentationStorybook 10 in the reviewed source checkout

Quick Example​

This standalone UI example prevents a browser form navigation and uses native email validation. It does not create a subscription or a GxP record.

<script setup lang="ts">
import { ref } from 'vue'
import { Button, Input, Label } from '@gxp-dev/app-ui'

const email = ref('')
const previewed = ref(false)
</script>

<template>
<form class="space-y-4" @submit.prevent="previewed = true">
<Label for="preview-email">Email</Label>
<Input
id="preview-email"
v-model="email"
type="email"
required
placeholder="Enter your email"
/>
<Button type="submit">
Preview
</Button>
<p v-if="previewed" role="status">Local preview completed.</p>
</form>
</template>

Documentation Structure​

The UI Kit is part of a larger ecosystem:

PackagePurpose
@gxp-dev/app-uiUI components (this package)
@gxp-dev/toolsCLI, app compilation and runtime integration
Experience PortalHosting, authentication, resource binding and backend services

Support​

  • Storybook - Run pnpm storybook in the owning AppUI checkout, or gxdev storybook from your GxP app/plugin project; setup and discovery
  • Issues - Report bugs and request features on GitHub
  • Examples - See the /examples directory for integration patterns

Contract coverage and integration boundaries​

The reviewed public catalog contains 288 component contracts and 35 helper contracts. The hub includes all 141 public Markdown guides from the owning checkout, plus its Storybook wrapper. Internal design plans and maintenance verification reports are kept in the package repository. Generated references describe declared exports, props, events, slots, examples and page defaults; complete authored examples and generated helper demos are checked separately against source.

Use installation for packed-consumer compatibility and the local declaration fixes, application patterns for complete UI compositions, flow recipes for orchestrated flows, and testing for validation. Match the installed package/tarball and stylesheet to the documented contract; source commit 70f9662 remains a local checkpoint, not proof of a replacement registry release.

For analytics in a toolkit-built app, use the host’s GxP Analytics Plugin. AppUI does not install that plugin or persist analytics itself. Track a completed action only after your application confirms success, and keep event properties and tracked button text free of secrets/personal data. UI previews, local flow completion and a gxp:track console entry are separate from a saved platform operation or analytics record.