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
- Install SaltUI and wrap your first screen in
SaltTheme. - Set up your theme with light and dark colors, typography, spacing, and shapes.
- Build a screen with a title bar, scrollable content, and settings sections.
Find a component or guide
| To do this | Read |
|---|---|
| Build settings, input, and selection rows | Items |
| Choose a button, text component, or card | Primitives |
| Show actions, a context menu, or a dropdown | Popup menus |
| Ask for confirmation or present a temporary task | Overlays and dialogs, Sheet |
| Add glass to a button or floating control | Glass |
| Apply a shared backdrop to screens and cards | Material |
| Manage back and forward navigation | Navigation |
| Build long lists and snapped scrolling | Scrolling and lists |
| Set up Android edge-to-edge or native desktop windows | Android, Desktop |
| Adapt to the space available in a window | Adaptive windows |
| Check an API by name | UI 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
- WinUI puts control selection, APIs, and its Gallery sample together. SaltUI's overlay table follows that pattern to distinguish commands, confirmations, and modal tasks. WinUI menu documentation
- The Compose Material 3 guide walks through the trigger, expanded state, dismissal, and rendered result. SaltUI's action menu example follows the same sequence. Compose Material 3 menu guide
- SwiftUI groups commands, context menus, and nested menus by use. SaltUI's input guidance covers each trigger and explains how desktop and mobile present submenus. SwiftUI menus and commands