Blazor playground

Nova v3.38.0

Preview

Blazor

nv-loader migration

Renaming the primary color to brand and replacing the removed loading prop.

← nv-loader

Migration Guide for nv-loader

In the latest version of the nv-loader component, we've made some changes to the properties to improve usability and consistency. Below is a guide to help you update your existing loaders from version 2 to version 3.

Breaking Changes#

1. prop color -> use brand instead of primary#

The color prop supports brand and white. Replace primary with brand. If color is omitted, the loader inherits the color from its parent.

Old Usage:

razor<NvLoader Color="primary"></NvLoader>

New Usage:

razor<NvLoader Color="NvLoader.ColorEnum.brand"></NvLoader>

2. prop loading -> removed#

The loading prop has been removed. To hide a loader, simply remove it from the DOM. If the tag is present, the loader will be visible by default, unlike the previous loading prop which hid the loader by default.

Old Usage:

razor<NvLoader Loading="true"></NvLoader>

New Usage:

razor<NvLoader></NvLoader>