Skip to content

ShellUI Native v0.1.0-alpha.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Oct 20:38
· 58 commits to main since this release
5fdeca6

ShellUI Native v0.1.0-alpha.2 🧪

Avalonia support and five new components. Every component now has a .NET MAUI and an Avalonia version, installed by the same commands. Still a prerelease, so install with --prerelease. Report issues via GitHub Issues.

📦 Install or update

dotnet tool update -g ShellUI.Native.CLI --prerelease

cd YourApp
shellui-native init --yes
shellui-native add button input card

Requires the .NET 10 SDK and a .NET MAUI or Avalonia 12 project. init detects which one it is.

🟣 Avalonia

  • All 63 component families (94 CLI targets) have an Avalonia version, with the same names, properties and variants as MAUI. The few differences are listed in COMPONENTS.md.
  • Setup after init: call Components.UI.ShellTheme.EnsureInitialized(); in App.Initialize, after AvaloniaXamlLoader.Load(this);, and add xmlns:ui="using:YourApp.Components.UI" to your XAML. init prints these steps.
  • Overlays use Avalonia's Popup: menus and popovers flip above the trigger when there is no room below, a click outside or Escape closes them, and an open dialog, drawer or sheet keeps keyboard focus inside it.
  • Keyboard: interactive parts are tab stops with shadcn's focus ring, and Enter / Space activate them.
  • In an initialized project, shellui-native list shows the components for that project's platform.

✨ New components

For MAUI and Avalonia.

Component What it is
resizable Panels side by side or stacked, with a divider to drag. Each panel has a share of the space and a minimum size; groups nest.
navbar A top bar with a brand, links and actions. Below 640px wide the links move into a menu under the bar.
sidebar An app sidebar with groups and items that collapses to an icon rail.
date-range-picker One calendar for a start and an end date. Calendar gains RangeStart and RangeEnd, which highlight a span of days.
file-upload A drop zone that opens the platform file picker and lists the picked files.

🧰 CLI

  • init derives a valid namespace when the project file has no RootNamespace.

⬆️ Upgrading from alpha.1

Components already in your project are not changed by installing the new tool. date-range-picker needs the new Calendar: if calendar is already in your project, run shellui-native update calendar before adding it. update rewrites the file, so reapply any edits you made to it.

⚠️ Known limitations

  • Avalonia was checked on Windows. CI builds the Avalonia demo on Linux, Windows and macOS, but the components have not been run on macOS or Linux, or with touch.
  • The five new components were checked on Windows (MAUI and Avalonia). On Android, iOS and Mac Catalyst they build but have not been run.
  • file-upload: on MAUI, dropping files works on Windows only. The platform file dialog and file drop have not been tested beyond the build on either platform.
  • iOS and Mac Catalyst build but have not been run on a device; Escape does not close overlays on Mac Catalyst yet.
  • Very large MAUI pages on Windows can hit WinUI's layout-pass limit (Layout cycle detected). Split the page or keep sections hidden until needed; see COMPONENTS.md.
  • The docs site (native.shellui.dev) is not live yet; see COMPONENTS.md for usage.