Close Docs

Getting Started

DiscoUI is a Mobile Shell SDK for building high-performance Metro-inspired applications. It is designed as a modular ecosystem that synchronizes native hardware events with a framework-native development experience.

The Golden Path: Full Mobile Stack

This approach combines the core engine, the Vue integration, and the Capacitor bridge for a complete mobile application shell.

1. Installation

npm install @discoui-org/core @discoui-org/vue @discoui-org/capacitor

2. Integrated App Architecture

The three packages work in tandem to provide a cohesive mobile experience:

3. Quick Start (Vue 3 + Capacitor)

Initialize the app in your entry point:

import { DiscoApp } from '@discoui-org/core';
import '@discoui-org/core/dist/discoui.css';

DiscoApp.ready(() => {
  const app = new DiscoApp({ splash: 'auto' });
  app.launch(document.getElementById('appFrame'));
});

4. IDE Support (Volar/VS Code)

To enable IntelliSense and prop validation for all DiscoUI components, add the following to your env.d.ts or discoui.d.ts:

import '@discoui-org/vue/src/global.d.ts';

Alternative: Web-Only Path

For projects that only require web components without native mobile features or Vue-specific DX:

1. Installation

npm install @discoui-org/core

2. Usage

Refer to the Component Gallery for vanilla JS usage.


Next Steps