This release of AstrolUI for .NET 10 is a full overhaul of Astrol.Component.Basic and its dependencies, focused on performance, size, user experience and accessibility. The astrol-* icon names do not change. Some changes break the previous API: the steps to migrate your projects are at the end of this page.
// Program.csbuilder.Services.AddAstrolBasic();// Page or component@inject IAstrolToast Toast@inject IAstrolModal Modalif (await Modal.ConfirmAsync("Are you sure?", "The item will be deleted.")){ await Delete(item); Toast.Success("Deleted");}var result = await Modal.ShowAsync<EditUser>("Edit", new Dictionary<string, object?> { ["Id"] = 5 });if (!result.Cancelled) { var user = result.GetData<User>(); }The full guide, with every change, how to detect it (regular expressions) and before/after examples, is in the repository at docs/refactor/MIGRATION.md; it is written so an AI can also apply it to your project.
// ---- before ----services.AddScoped<AstrolJSInterop>();await jsI.Notification("Saved <br/> successfully".NotificationSuccess());var ok = await _conf.Confirmation("Are you sure?", "Message"); // <AstrolConfirm @ref="_conf" />// ---- now ----services.AddAstrolBasic();Toast.Success("Saved\nsuccessfully");var ok = await Modal.ConfirmAsync("Are you sure?", "Message");<!-- before --><script src="_content/Astrol.Component.Basic/js/interact.min.js"></script><script src="_content/Astrol.Component.Basic/js/astrol-rich-text.min.js"></script><!-- now: interact is no longer needed (except with Board); RichText in its own package --><script src="_content/Astrol.Component.RichText/js/astrol-rich-text.min.js"></script>