RizzyUI 1.0.0 Preview 4

RizzyUI 1.0.0-preview.4 is the result of building Summit, a complete conference app, on RizzyUI and fixing everything it found, followed by an audit of how components behave when they are composed: nested, repeated, inside dialogs, inside forms and replaced by htmx. It requires Rizzy 6.0.0-preview.4. Update all three packages:

dotnet add package RizzyUI --prerelease
dotnet new install RizzyUI.Templates
npm install @jalexsocial/rizzyui@next

Breaking changes

Upgrading RizzyUI lists what to change for each.

  • Every input posts the full model path. RzCheckboxGroup, RzRadioGroup, RzCombobox, RzFileInput and RzInputOTP post Model.Country like Blazor’s own inputs instead of Country. Set Name="Country" to keep the bare name.
  • Alpine directives on components follow fixed rules. x-data, x-init and x-load passed to a component (or to the child of an AsChild component) throw instead of silently replacing the component’s state; x-model works only on components that hold a value; x-show, x-cloak and x-transition throw on components that manage their own visibility; a component’s own x-ref names are reserved. Put application state on an ancestor and use x-syncprop or the component’s events.
  • RzDateEdit has no default accessible name: its FieldLabel names it. Set AriaLabel when there is no visible label.
  • RzCollapsible supports AsChild, so a custom theme that overrides it builds its descriptor for the new base type.
  • Dialog event constants. Constants.Events.DialogInitialized, DialogBeforeOpen, DialogAfterOpen, DialogBeforeClose and DialogAfterClose now hold the rz:modal-* names that dialogs have always raised (they named events nothing raised). Rebuild code that uses them. Constants.CalendarEvents.ChangeView and SelectDate, which no component raised, are removed.

Highlights

  • Forms that bind. RzCalendarProvider posts its dates as form fields (Name, or StartName and EndName for a range) and raises change when the value is complete. RzDataTable keeps its sorting, page, filters and selection in one hidden input that binds as RzDataTableState. New RzGetForm for search forms, RzFocusFirstInvalid after a 422, and RzInputSlider bound with For.
  • Components that compose. Nested tab sets, accordions and calendar providers keep to themselves; two menubars or dialogs never act on each other; a dropdown menu or popover inside a dialog works from the keyboard and with screen readers; a popover trigger inside a form no longer submits it; and components removed by htmx while they were still loading no longer leave widgets or listeners behind.
  • Server-driven overlays. HX-Trigger: {"rz:dialog-close": {"id": "edit"}} closes one dialog (no id closes all), sheets open and close from events too, and a command sent before a component has loaded still reaches it.
  • Safe composition with Alpine. Your x-on:* handlers run alongside a component’s own, AsChild children keep their handlers and ids, and x-syncprop syncs a component inside a dialog or sheet with your application’s state.
  • More components and options: RzButton AsChild for button-styled links, <RzThemeHeadOutlet />, RzToastProvider ServerErrorToasts, command items with Href and a Ctrl+K Shortcut, self-hosted widget libraries with RizzyUIConfig.LocalAssetPath, and date components that follow the request culture.
  • Accessibility: the Arctic theme meets WCAG AA contrast, and many ARIA, focus and target-size fixes found by running axe on every docs page in both runtimes.
  • For contributors: the component authoring guide (AGENTS.md) is rewritten as version 4.0 with guides on composability, component lifetime under htmx, and forms.

The full changelog and the GitHub release list every change.