This document is for AI agents working inside Vue projects that consume GNexus UI Kit.
Prefer gnexus-ui-kit/vue components over hand-written kit markup.
Do not recreate modal, drawer, tab, toast, form, button, or table markup manually unless the adapter does not expose the needed component yet.
At app root:
import "gnexus-ui-kit/dist/css/kit.css"; import "gnexus-ui-kit/dist/assets/fonts/phosphor-icons/src/css/icons.css";
Use named imports:
import { GnButton, GnInput, GnModal } from "gnexus-ui-kit/vue";
Or global registration:
import { GnexusUiVue } from "gnexus-ui-kit/vue";
app.use(GnexusUiVue);
Use these mappings:
GnButtonGnIconButtonGnBadgeGnAlertGnCardGnPageHeaderGnInputGnTextareaGnSelectGnCheckbox or GnSwitchGnTabsGnAccordionGnModalGnDrawerGnToastProvider + useToastGnConfirmDialogGnTableGNexusUIKit.Modals.create() from Vue components.Accordion.init() or Tabs.init() inside Vue components.Raw classes are acceptable for layout-only wrappers and content that has no Vue adapter yet:
<div class="form-grid">...</div> <div class="demo-actions">...</div>
For interactive components, add or extend the adapter first.
When the base kit changes markup for a component, update the Vue adapter in this repository. Downstream projects should receive compatibility through dependency updates, not local rewrites.