System component library

Updated at:

This topic describes the system component library of the Mobi platform, explains the differences between component libraries, and shows how to switch between them. For component-level differences, see the documentation for each component.

Concepts and differences

A system component library is a collection of built-in, out-of-the-box UI components on the Mobi platform. These components include types such as Form, Button, Display, Navigation, Data, Container, Frame, Chart, and AI.

The Mobi platform integrates two mainstream design systems. The two component libraries have different visual styles and component configuration items. You can choose a suitable component library based on your application scenario and visual preferences.

  1. Ant Design component library

  • Features: Provides a complete ecosystem of web application components. It is widely used in enterprise-level applications.

  • Scenarios: Enterprise management backends, data dashboards, and business-facing applications.

  1. Spark Design component library

  • Features: Uses a more modern design language and interaction method. It is designed for AI application scenarios and integrates AI interaction components such as dialogs and bubbles.

  • Scenarios: AI assistants, intelligent conversational applications, and Agent applications.

  1. Common components

Common components are not specific to any design system and can be used with any component library. These include form components (such as Rating and Speech Input), display components (such as Text, Icon, and QR Code), container components (such as Multi-container View), and chart components (such as Line Chart and Pie Chart).

How to switch

Switch the component library

In the Mobi platform, go to Settings > Component Library. Select a different component library. In the dialog box that appears, click the Confirm Switch button to switch the system component library.

After you switch the component library, the components from the selected library appear in the Add Component panel.

Switch the theme

After you switch the component library, you can also choose whether to sync the application theme with the new library's theme.

  • Keep current theme: Switches the component library but retains the current theme.

  • Switch theme: Switches both the component library and the application theme.

You can manually adjust the theme in Settings > Application Theme. For more information, see Application theme settings.

Note
  1. If you build an application on the canvas using components from Library A and then switch to Library B, the existing components from Library A continue to display and render correctly. However, if you also switch the application theme, the new theme applies to components from both libraries on the canvas. Switch with caution.

  2. Switch component libraries early in the application development process. For a single application, avoid using components from two different libraries at the same time.