@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
| Layer | Technology |
|---|---|
| Framework | Vue 3.5+ (Composition API) |
| Language | TypeScript |
| Primitives | shadcn-vue (Reka UI + Tailwind) |
| Styling | Tailwind 4 + platform CSS variables |
| Build | Vite (library mode) |
| Testing | Vitest + Vue Test Utils |
| Documentation | Storybook 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
- Getting Started - Installation and setup
- Components - Component API reference
- Experience Flow - State-machine orchestrator and prebuilt pages
- Theming - Customization and CSS variables
- Migration Guide - Migrating from z-plugin-components
- API Reference - Generated public props, events, slots and examples
- Application recipes - Reusable app patterns
- Flow recipes - Complete multi-step examples
- AI scaffolding - Manifest and component discovery
- Contributing - Adding and porting components
Related Packages
The UI Kit is part of a larger ecosystem:
| Package | Purpose |
|---|---|
@gxp-dev/app-ui | UI components (this package) |
@gxp-dev/tools | CLI, app compilation and runtime integration |
| Experience Portal | Hosting, authentication, resource binding and backend services |
Support
- Storybook - Run
pnpm storybookin the owning AppUI checkout, orgxdev storybookfrom your GxP app/plugin project; setup and discovery - Issues - Report bugs and request features on GitHub
- Examples - See the
/examplesdirectory 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.