Skip to content

SaltUI ​

SaltUI is a Compose Multiplatform component library for Android, iOS, and Desktop. It provides a shared theme, settings rows, screen layouts, menus, sheets, and backdrop effects.

Get started ​

  1. Install SaltUI and wrap your first screen in SaltTheme.
  2. Set up your theme with light and dark colors, typography, spacing, and shapes.
  3. Build a screen with a title bar, scrollable content, and settings sections.

Find a component or guide ​

To do thisRead
Build settings, input, and selection rowsItems
Choose a button, text component, or cardPrimitives
Show actions, a context menu, or a dropdownPopup menus
Ask for confirmation or present a temporary taskOverlays and dialogs, Sheet
Add glass to a button or floating controlGlass
Apply a shared backdrop to screens and cardsMaterial
Manage back and forward navigationNavigation
Build long lists and snapped scrollingScrolling and lists
Set up Android edge-to-edge or native desktop windowsAndroid, Desktop
Adapt to the space available in a windowAdaptive windows
Check an API by nameUI module index, Core, Modifiers and utilities

Versions ​

The docs follow the development source. The current menu and Glass examples were reviewed against commit 3cb7cbf, which sets the version to 3.1.0-alpha02. Check your chosen version's compatibility table and release notes before using an unstable API. The installation guide lists the Maven coordinates.

Run the sample ​

From the SaltUI checkout, run ./gradlew :desktopApp:run or gradlew.bat :desktopApp:run on Windows. Open Popup menus, Glass, or Sheet from the sample home screen.

The shared sample source is used by the Android, iOS, and Desktop entry points. For UI copy and localization conventions, see the text and translation standard (Chinese).

Design references ​

Google/Android 是 Google LLC 的注册商标,Salt Player 和糖醋音乐均是寻浔科技(上海)有限公司在中华人民共和国的注册商标