Vue playground

Nova v3.38.0

Preview

Vue

BaseComponent

Replacing attribute-based styling with Tailwind classes, attribute by attribute.

Introduction#

In version 2 of our design system, Base was a foundational component used primarily to apply styling via attributes. Instead of manually writing css, developers could specify properties—such as background color, padding, or margin—directly on any component. These properties were then translated into the corresponding CSS classes behind the scenes, ensuring a standardized and consistent style across the application.

Why It’s Discontinued#

With the transition to version 3, we have fully adopted Tailwind CSS, which offers a comprehensive set of utility classes for styling. Because Tailwind covers much of the same ground as Base did, having a dedicated component to map attributes to CSS is no longer necessary. By applying Tailwind classes directly in markup, developers gain more immediate control over styling while keeping the component layer simpler and more flexible.

Additionally, our design system has grown beyond its initial .NET focus to accommodate a broader range of web technologies. Removing Base aligns with this framework-agnostic philosophy and helps streamline the overall codebase.

Tailwind Plugin for Autocompletion#

If you benefited from the convenience of attribute autocompletion, consider installing a Tailwind CSS plugin for your IDE. These plugins provide IntelliSense for utility classes (including additional utilities from Nova), making it easier to discover and apply the correct styling without memorizing every Tailwind class.

Example of Version 2 vs. Version 3#

Below are some examples showing how Base attributes in version 2 compare to Tailwind & Nova utility classes in version 3.

Blazor

Version 2 (using Base attributes)

html<NVBlock BorderRadius="sm"></NVBlock> <NVAlert BorderRadius="sm"></NVAlert>

Version 3 (using Tailwind classes)

html<div class="rounded-sm"></div>
<NvAlert class="rounded-sm"></NvAlert>

In version 2, setting BorderRadius="sm" on <NVBlock> or <NVAlert> automatically applied the rounded-sm class. In version 3, you simply write the desired utility class (rounded-sm) in your markup.

React

Version 2 (using Base attributes)

html<NvBlock borderRadius="sm"></NvBlock> <NvAlert borderRadius="sm"></NvAlert>

Version 3 (using Tailwind classes)

html<div className="rounded-sm"></div>
<NvAlert className="rounded-sm"></NvAlert>

In version 2, setting borderRadius="sm" on <NvBlock> or <NvAlert> applied the rounded-sm class. In version 3, you simply write the desired utility class (rounded-sm) in your markup.

Angular

Version 2 (using Base attributes)

html<nv-block [borderRadius]="sm"></nv-block>
<nv-alert [borderRadius]="sm"></nv-block>

Version 3 (using Tailwind classes)

html<div class="rounded-sm"></div>
<nv-alert class="rounded-sm"></nv-alert>

In version 2, setting [borderRadius]="sm" on <nv-block> or <nv-alert> applied the rounded-sm class. In version 3, you simply write the desired utility class (rounded-sm) in your markup.

Webcomponents

Version 2 (using Base attributes)

html<nv-block border-radius="sm"></nv-block>
<nv-alert border-radius="sm"></nv-block>

Version 3 (using Tailwind classes)

html<div class="rounded-sm"></div>
<nv-alert class="rounded-sm"></nv-alert>

In version 2, setting border-radius="sm" on <nv-block> or <nv-alert> applied the rounded-sm class. In version 3, you simply write the desired utility class (rounded-sm) in your markup.

Migration Guide#

AddClass#

Class names are passed directly to the components or html tags.

Blazor

Version 2

csharpAddClass(DomClass.TextColor("orange-500"))

Version 3

html<NvComponent class="text-orange-500" />

AddStyle#

Inline styles are passed directly to the components or html tags.

Blazor

Version 2

csharpAddStyle(DomStyle.TextColor("#F00"))

Version 3

reacttsx<NvComponent style="color: #f00" />

ActiveEffect#

This has been removed and should no longer be used. Refer to the tailwind documentation for the desired effect.

Blazor

Version 2

html<NVButton ActiveEffect="@ActiveEffect.UP"> </NVButton>

Version 3

Removed, use tailwind utils for various effects

html<NvButton class="shadow-lg" />

Alt#

Add the alt attribute directly as a native html attribute. Will work on native html elements, or any nova component.

Blazor

Version 2

html<NVBlock Tag="img" Alt="Alternate text"></NVBlock>

Version 3

html<img alt="Alternate text" />

BackgroundColor#

Use tailwind’s background-color utility classes or style attributes directly.

Blazor

Version 2

html<NVBlock BackgroundColor="orange-500"></NVBlock>
<NVAlert BackgroundColor="orange-500"></NVAlert>
<NVBlock BackgroundColor="#FF0000"></NVBlock>
<NvAlert BackgroundColor="#FF0000"></NvAlert>

Version 3

html<div class="bg-orange-500"></div>
<NvAlert class="bg-orange-500"></NvAlert>
<div style="color: #FF0000"></div>
<NvAlert style="color: #FF0000"></NvAlert>

React

Version 2

html<NvBlock backgroundColor="orange-500"></NvBlock>
<NvAlert backgroundColor="orange-500"></NvAlert>
<NvBlock backgroundColor="#FF0000"></NvBlock>
<NvAlert backgroundColor="#FF0000"></NvAlert>

Version 3

html<div className="bg-orange-500"></div>
<NvAlert className="bg-orange-500"></NvAlert>
<div style={{ color: "#FF0000" }}></div>
<NvAlert style={{ color: "#FF0000" }}></NvAlert>

Angular

Version 2

html<nv-block [backgroundColor]="orange-500"></nv-block>
<nv-alert [backgroundColor]="orange-500"></nv-block>
<nv-block [backgroundColor]="#FF0000"></nv-block>
<nv-alert [backgroundColor]="#FF0000"></nv-block>

Version 3

html<div class="bg-orange-500"></div>
<nv-alert class="bg-orange-500"></nv-alert>
<div style="color: #FF0000"></div>
<nv-alert style="color: #FF0000"></nv-alert>

Webcomponents

Version 2

html<nv-block background-color="orange-500"></nv-block>
<nv-alert background-color="orange-500"></nv-block>
<nv-block background-color="#FF0000"></nv-block>
<nv-alert background-color="#FF0000"></nv-block>

Version 3

html<div class="bg-orange-500"></div>
<nv-alert class="bg-orange-500"></nv-alert>
<div style="color: #FF0000"></div>
<nv-alert style="color: #FF0000"></nv-alert>

ActiveBackgroundColor#

Use the tailwind’s active modifier with background-color utility classes directly.

Blazor

Version 2

html<NVButton ActiveBackgroundColor="orange-500"></NVButton>

Version 3

html<NvButton class="active:bg-orange-500"></NvButton>

React

Version 2

html<NvButton activeBackgroundColor="orange-500"></NvButton>

Version 3

html<NvButton className="active:bg-orange-500"></NvButton>

Angular

Version 2

html<nv-button [activeBackgroundColor]="orange-500"></nv-button>

Version 3

html<nv-button class="active:bg-orange-500"></nv-button>

Webcomponents

Version 2

html<nv-button active-background-color="orange-500"></nv-button>

Version 3

html<nv-button class="active:bg-orange-500"></nv-button>

HoverBackgroundColor#

Use the tailwind’s hover modifier with background-color utility classes directly.

Blazor

Version 2

html<NVButton HoverBackgroundColor="orange-500"></NVButton>

Version 3

html<NvButton class="hover:bg-orange-500"></NvButton>

React

Version 2

html<NvButton hoverBackgroundColor="orange-500"></NvButton>

Version 3

html<NvButton className="hover:bg-orange-500"></NvButton>

Angular

Version 2

html<nv-button [hoverBackgroundColor]="orange-500"></nv-button>

Version 3

html<nv-button class="hover:bg-orange-500"></nv-button>

Webcomponents

Version 2

html<nv-button hover-background-color="orange-500"></nv-button>

Version 3

html<nv-button class="hover:bg-orange-500"></nv-button>

BorderColor#

Use tailwind’s border-color utility classes or style attributes directly.

Blazor

Version 2

html<NVBlock BorderColor="orange-500"></NVBlock>
<NVBlock BorderColor="#FF0000"></NVBlock>

Version 3

html<div class="border-orange-500"></div>
<div style="border-color:#FF0000;"></div>

React

Version 2

html<NvBlock borderColor="orange-500"></NvBlock>
<NvBlock borderColor="#FF0000"></NvBlock>

Version 3

html<div className="border-orange-500"></div>
<div style={{ borderColor: "#FF0000" }}></div>

Angular

Version 2

html<nv-block [borderColor]="orange-500"></nv-block>
<nv-block [borderColor]="#FF0000"></nv-block>

Version 3

html<div class="border-orange-500"></div>
<div style="border-color: #FF0000"></div>

Webcomponents

Version 2

html<nv-block border-color="orange-500"></nv-block>
<nv-block border-color="#FF0000"></nv-block>

Version 3

html<div class="border-orange-500"></div>
<div style="border-color: #FF0000"></div>

ActiveBorderColor#

Use the tailwind’s active modifier with border-color utility classes directly.

Blazor

Version 2

html<NVBlock ActiveBorderColor="orange-500"></NVBlock>

Version 3

html<div class="active:border-orange-500"></div>

React

Version 2

html<NvBlock activeBorderColor="orange-500"></NvBlock>

Version 3

html<div className="active:border-orange-500"></div>

Angular

Version 2

html<nv-block [activeBorderColor]="orange-500"></nv-block>

Version 3

html<div class="active:border-orange-500"></div>

Webcomponents

Version 2

html<nv-block active-border-color="orange-500"></nv-block>

Version 3

html<div class="active:border-orange-500"></div>

HoverBorderColor#

Use the tailwind’s hover-modifier with border-color utility classes directly.

Blazor

Version 2

html<NVBlock HoverBorderColor="orange-500"></NVBlock>

Version 3

html<div class="hover:border-orange-500"></div>

React

Version 2

html<NvBlock hoverBorderColor="orange-500"></NvBlock>

Version 3

html<div className="hover:border-orange-500"></div>

Angular

Version 2

html<nv-block [hoverBorderColor]="orange-500"></nv-block>

Version 3

html<div class="hover:border-orange-500"></div>

Webcomponents

Version 2

html<nv-block hover-border-color="orange-500"></nv-block>

Version 3

html<div class="hover:border-orange-500"></div>

BorderRadius#

Use tailwind’s border-radius utility classes directly.

Blazor

Version 2

html<NVBlock BorderRadius="sm"></NVBlock>

Version 3

html<div class="rounded-sm"></div>

React

Version 2

html<NvBlock borderRadius="sm"></NvBlock>

Version 3

html<div className="rounded-sm"></div>

Angular

Version 2

html<nv-block [borderRadius]="sm"></nv-block>

Version 3

html<div class="rounded-sm"></div>

Webcomponents

Version 2

html<nv-block border-radius="sm"></nv-block>

Version 3

html<div class="rounded-sm"></div>

BorderWidth#

Use tailwind’s border-width utility classes directly.

Blazor

Version 2

html<NVBlock BorderWidth="1 2 4 8"></NVBlock>

Version 3

html<div class="border-t border-r-2 border-b-4 border-l-8"></div>

React

Version 2

html<NvBlock borderWidth="1 2 4 8"></NvBlock>

Version 3

html<div className="border-t border-r-2 border-b-4 border-l-8"></div>

Angular

Version 2

html<nv-block [borderWidth]="1 2 4 8"></nv-block>

Version 3

html<div class="border-t border-r-2 border-b-4 border-l-8"></div>

Webcomponents

Version 2

html<nv-block border-width="1 2 4 8"></nv-block>

Version 3

html<div class="border-t border-r-2 border-b-4 border-l-8"></div>

Bottom#

Use tailwind’s placement utility classes directly.

Blazor

Version 2

html<NVBlock Bottom="0"></NVBlock>

Version 3

html<div class="bottom-0"></div>

React

Version 2

html<NvBlock bottom="0"></NvBlock>

Version 3

html<div className="bottom-0"></div>

Angular

Version 2

html<nv-block [bottom]="0"></nv-block>

Version 3

html<div class="bottom-0"></div>

Webcomponents

Version 2

html<nv-block bottom="0"></nv-block>

Version 3

html<div class="bottom-0"></div>

ChildContent#

Every Component allows child and slot components, no changes necessary.

ChildMargin#

Removed, use flexbox and tailwind’s spacing utility classes.

Blazor

Version 2

html<NVBlock ChildMargin="1 2"></NVBlock>

Version 3

html<div class="flex space-y-1 space-x-2"></div>

React

Version 2

html<NvBlock childMargin="1 2"></NvBlock>

Version 3

html<div className="flex space-y-1 space-x-2"></div>

Angular

Version 2

html<nv-block [childMargin]="1 2"></nv-block>

Version 3

html<div class="flex space-y-1 space-x-2"></div>

Webcomponents

Version 2

html<nv-block child-margin="1 2"></nv-block>

Version 3

html<div class="flex space-y-1 space-x-2"></div>

ChildPadding#

Removed, use flexbox and tailwind’s spacing utility classes, see ChildMargin for alternative, or add padding classes to the children directly.

Class#

Use the native html class tag directly.

Blazor

Version 2

html<NVAlert Class="sample" />

Version 3

html<NvAlert class="sample" />

CM#

Removed, see ChildMargin for alternative.

CMB#

Removed, see ChildMargin for alternative.

CML#

Removed, see ChildMargin for alternative.

CMR#

Removed, see ChildMargin for alternative.

CMT#

Removed, see ChildMargin for alternative.

CMX#

Removed, see ChildMargin for alternative.

CMY#

Removed, see ChildMargin for alternative.

Color#

Contextual colors are now defined via descriptive props such as emphasis or feedback. Please refer to the documentation of the individual components. If you want to directly set text color, use tailwind’s color utility classes.

Blazor

Version 2

html<NVButton Color="orange-500"></NVButton>

Version 3

html<NVButton Emphasis="high"></NVButton>

React

Version 2

html<NvButton color="orange-500"></NvButton>

Version 3

html<NvButton emphasis="high"></NvButton>

Angular

Version 2

html<nv-button [color]="orange-500"></nv-button>

Version 3

html<nv-button [emphasis]="high"></nv-button>

Webcomponents

Version 2

html<nv-button color="orange-500"></nv-button>

Version 3

html<nv-button emphasis="high"></nv-button>

ColSize#

ColSize has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

Content#

Use tailwind’s justify utility classes directly.

Blazor

Version 2

html<NVBlock Content="@Content.START"></NVBlock>
<NVBlock Content="@Content.END"></NVBlock>

Version 3

html<div class="justify-start"></div>
<div class="justify-end"></div>

React

Version 2

html<NvBlock content="start"></NvBlock> <NvBlock content="end"></NvBlock>

Version 3

html<div className="justify-start"></div>
<div className="justify-end"></div>

Angular

Version 2

html<nv-block [content]="start"></nv-block> <nv-block [content]="end"></nv-block>

Version 3

html<div class="justify-start"></div>
<div class="justify-end"></div>

Webcomponents

Version 2

html<nv-block content="start"></nv-block> <nv-block content="end"></nv-block>

Version 3

html<div class="justify-start"></div>
<div class="justify-end"></div>

CP#

Removed, see ChildPadding for details.

CPB#

Removed, see ChildPadding for details.

CPL#

Removed, see ChildPadding for details.

CPR#

Removed, see ChildPadding for details.

CPT#

Removed, see ChildPadding for details.

CPX#

Removed, see ChildPadding for details.

CPY#

Removed, see ChildPadding for details.

DicClass#

Use the @class directive directly.

Blazor

Version 2

csharp<NVBlock DicClass="@(new Dictionary<string, bool>() {
  {"border", true},
  {"border-gray-200", true},
  {"app-sidebar-close", false},
)"></NVBlock>

Version 3

csharp<div @class=(@{
    return new Dictionary<string, bool>
    {
        { "border", true },
        { "border-gray-200", true },
        { "app-sidebar-close", false }
    }
        .Where(kvp => kvp.Value)
        .Select(kvp => kvp.Key);
})>
</div>

Direction#

Use tailwind’s flex-direction utility classes directly.

Blazor

Version 2

html<NVBlock Content="@Direction.ROW"></NVBlock>

Version 3

html<div class="flex-row"></div>

React

Version 2

html<NvBlock direction="row"></NvBlock>

Version 3

html<div className="flex-row"></div>

Vue

Version 2

html<NvBlock direction="row"></NvBlock>

Version 3

html<div class="flex-row"></div>

Angular

Version 2

html<nv-block [direction]="row"></nv-block>

Version 3

html<div class="flex-row"></div>

Webcomponents

Version 2

html<nv-block direction="row"></nv-block>

Version 3

html<div class="flex-row"></div>

Disabled#

Refer to the component or native html documentation for disabled attributes.

Blazor

Version 2

html<NVButton Disabled></NVButton> <NVBlock Tag="input" Disabled></NVBlock>

Version 3

html<NvButton Disabled></NvButton> <input disabled />

Display#

Use tailwind’s display utility classes directly.

Blazor

Version 2

html<NVBlock Display="@Display.HIDDEN"></NVBlock>

Version 3

html<div class="hidden"></div>

React

Version 2

html<NvBlock direction="row"></NvBlock>

Version 3

html<div className="flex-row"></div>

Angular

Version 2

html<nv-block [direction]="row"></nv-block>

Version 3

html<div class="flex-row"></div>

Webcomponents

Version 2

html<nv-block direction="row"></nv-block>

Version 3

html<div class="flex-row"></div>

FontSize#

Use tailwind’s font-size utility classes directly.

Blazor

Version 2

html<NVBlock FontSize="16px"></NVBlock>

Version 3

html<div class="text-base"></div>

React

Version 2

html<NvBlock fontSize="16px"></NvBlock>

Version 3

html<div className="text-base"></div>

Angular

Version 2

html<nv-block [fontSize]="16px"></nv-block>

Version 3

html<div class="text-base"></div>

Webcomponents

Version 2

html<nv-block font-size="16px"></nv-block>

Version 3

html<div class="text-base"></div>

FontWeight#

Use tailwind’s font-weight utility classes directly.

Blazor

Version 2

html<NVBlock FontWeight="@FontWeight.NORMAL"></NVBlock>

Version 3

html<div class="font-normal"></div>

React

Version 2

html<NvBlock fontWeight="normal"></NvBlock>

Version 3

html<div className="font-normal"></div>

Angular

Version 2

html<nv-block [fontWeight]="normal"></nv-block>

Version 3

html<div class="font-normal"></div>

Webcomponents

Version 2

html<nv-block font-weight="normal"></nv-block>

Version 3

html<div class="font-normal"></div>

GCM#

Removed, see GrandChildMargin for details.

GCMB#

Removed, see GrandChildMargin for details.

GCML#

Removed, see GrandChildMargin for details.

GCMR#

Removed, see GrandChildMargin for details.

GCMT#

Removed, see GrandChildMargin for details.

GCMX#

Removed, see GrandChildMargin for details.

GCMY#

Removed, see GrandChildMargin for details.

GCP#

Removed, see GrandChildPadding for details.

GCPB#

Removed, see GrandChildPadding for details.

GCPL#

Removed, see GrandChildPadding for details.

GCPR#

Removed, see GrandChildPadding for details.

GCPT#

Removed, see GrandChildPadding for details.

GCPX#

Removed, see GrandChildPadding for details.

GCPY#

Removed, see GrandChildPadding for details.

GrandChildMargin#

Not supported, use CSS or Tailwind spacing utilities (gap-*, space-*, m-*) instead.

GrandChildPadding#

Not supported, use CSS or Tailwind spacing utilities (gap-*, space-*, m-*) instead.

Grow#

Use tailwind’s flex-grow utility classes directly.

Blazor

Version 2

html<NVBlock Grow="1"></NVBlock>

Version 3

html<div class="grow"></div>

React

Version 2

html<NvBlock grow="1"></NvBlock>

Version 3

html<div className="grow"></div>

Angular

Version 2

html<nv-block [grow]="1"></nv-block>

Version 3

html<div class="grow"></div>

Webcomponents

Version 2

html<nv-block grow="1"></nv-block>

Version 3

html<div class="grow"></div>

GutterX#

Use tailwind’s gap utility classes directly.

Blazor

Version 2

html<NVBlock GutterX="2"></NVBlock>

Version 3

html<div class="gap-x-2"></div>

React

Version 2

html<NvBlock gutterX="2"></NvBlock>

Version 3

html<div className="gap-x-2"></div>

Angular

Version 2

html<nv-block [gutterX]="2"></nv-block>

Version 3

html<div class="gap-x-2"></div>

Webcomponents

Version 2

html<nv-block gutter-x="2"></nv-block>

Version 3

html<div class="gap-x-2"></div>

GutterY#

Use tailwind’s gap utility classes directly.

Blazor

Version 2

html<NVBlock GutterY="2"></NVBlock>

Version 3

html<div class="gap-y-2"></div>

React

Version 2

html<NvBlock gutterY="2"></NvBlock>

Version 3

html<div className="gap-y-2"></div>

Angular

Version 2

html<nv-block [gutterY]="2"></nv-block>

Version 3

html<div class="gap-y-2"></div>

Webcomponents

Version 2

html<nv-block gutter-y="2"></nv-block>

Version 3

html<div class="gap-y-2"></div>

Height#

Use tailwind’s height utility classes directly.

Blazor

Version 2

html<NVBlock Height="100px"></NVBlock>

Version 3

html<div class="h-[100px]"></div>

React

Version 2

html<NvBlock height="100px"></NvBlock>

Version 3

html<div className="h-[100px]"></div>

Angular

Version 2

html<nv-block [height]="100px"></nv-block>

Version 3

html<div class="h-[100px]"></div>

Webcomponents

Version 2

html<nv-block height="100px"></nv-block>

Version 3

html<div class="h-[100px]"></div>

HFull#

Use tailwind’s height utility classes directly.

Blazor

Version 2

html<NVBlock HFull></NVBlock>

Version 3

html<div class="h-full"></div>

React

Version 2

html<NvBlock hFull></NvBlock>

Version 3

html<div className="h-full"></div>

Angular

Version 2

html<nv-block hFull></nv-block>

Version 3

html<div class="h-full"></div>

Webcomponents

Version 2

html<nv-block h-full></nv-block>

Version 3

html<div class="h-full"></div>

Hover#

Removed, rely on the components for default styles. You can use the hover modifier from tailwind for customized approaches.

Href#

Add the href directly as a native html attribute. Will work on native html elements, or any nova component.

Blazor

Version 2

html<NVBlock Tag="a" Href="https://google.com"></NVBlock>

Version 3

html<a href="http://a-url.com"></a>

Id#

Add the id directly as a native html attribute. Will work on native html elements, or any nova component.

Blazor

Version 2

html<NVBlock Id="sample"></NVBlock>

Version 3

html<div id="sample"></div>

IsActive#

Removed, rely on the components for active styles. You can use the active modifier from tailwind for customized approaches.

IsSelected#

Removed, rely on the components for selected styles.

Items#

Use tailwind’s align-items utility classes directly.

Blazor

Version 2

html<NVBlock Items="@Items.START"></NVBlock>

Version 3

html<div class="items-start"></div>

React

Version 2

html<NvBlock items="start"></NvBlock>

Version 3

html<div className="items-start"></div>

Angular

Version 2

html<nv-block [items]="start"></nv-block>

Version 3

html<div class="itmes-start"></div>

Webcomponents

Version 2

html<nv-block items="start"></nv-block>

Version 3

html<div class="itmes-start"></div>

Justify#

Use tailwind’s justify-content utility classes directly.

Blazor

Version 2

html<NVBlock Justify="@Justify.START"></NVBlock>

Version 3

html<div class="justify-start"></div>

React

Version 2

html<NvBlock justify="start"></NvBlock>

Version 3

html<div className="justify-start"></div>

Angular

Version 2

html<nv-block [justify]="start"></nv-block>

Version 3

html<div class="justify-start"></div>

Webcomponents

Version 2

html<nv-block justify="start"></nv-block>

Version 3

html<div class="justify-start"></div>

JustifySelf#

Use tailwind’s justify-self utility classes directly.

Blazor

Version 2

html<NVBlock JustifySelf="@JustifySelf.START"></NVBlock>

Version 3

html<div class="justify-self-start"></div>

React

Version 2

html<NvBlock justifySelf="start"></NvBlock>

Version 3

html<div className="justify-self-start"></div>

Angular

Version 2

html<nv-block [justifySelf]="start"></nv-block>

Version 3

html<div class="justify-self-start"></div>

Webcomponents

Version 2

html<nv-block justify-self="start"></nv-block>

Version 3

html<div class="justify-self-start"></div>

Left#

Use tailwind’s layout utility classes directly.

Blazor

Version 2

html<NVBlock Left="0"></NVBlock>

Version 3

html<div class="left-[0]"></div>

React

Version 2

html<NvBlock left="0"></NvBlock>

Version 3

html<div className="left-[0]"></div>

Angular

Version 2

html<nv-block [left]="0"></nv-block>

Version 3

html<div class="left-[0]"></div>

Webcomponents

Version 2

html<nv-block left="0"></nv-block>

Version 3

html<div class="left-[0]"></div>

LG#

Removed, use tailwind’s media queries instead.

LinearGradient#

Use tailwind’s linear gradient utility classes directly.

Blazor

Version 2

html<NVBlock LinearGradient="to bottom, red 20%, blue 70%"></NVBlock>

Version 3

html<div class="bg-linear-to-r from-red-500 to-blue-500"></div>

React

Version 2

html<NvBlock linearGradient="to bottom, red 20%, blue 70%"></NvBlock>

Version 3

html<div className="bg-linear-to-r from-red-500 to-blue-500"></div>

Angular

Version 2

html<nv-block [linearGradient]="to bottom, red 20%, blue 70%"></nv-block>

Version 3

html<div class="bg-linear-to-r from-red-500 to-blue-500"></div>

Webcomponents

Version 2

html<nv-block linear-gradient="to bottom, red 20%, blue 70%"></nv-block>

Version 3

html<div class="bg-linear-to-r from-red-500 to-blue-500"></div>

M#

See Margin

Margin#

Use tailwind’s margin utility classes directly.

Blazor

Version 2

html<NVBlock Margin="1 . ."></NVBlock>

Version 3

html<div class="mt-1"></div>

React

Version 2

html<NvBlock margin="1 . ."></NvBlock>

Version 3

html<div className="mt-1"></div>

Angular

Version 2

html<nv-block [margin]="1 . ."></nv-block>

Version 3

html<div class="mt-1"></div>

Webcomponents

Version 2

html<nv-block margin="1 . ."></nv-block>

Version 3

html<div class="mt-1"></div>

MaxHeight#

Use tailwind’s max-height utility classes directly.

Blazor

Version 2

html<NVBlock MaxHeight="100%"></NVBlock>

Version 3

html<div class="max-h-full"></div>

React

Version 2

html<NvBlock maxHeight="100%"></NvBlock>

Version 3

html<div className="max-h-full"></div>

Angular

Version 2

html<nv-block [maxHeight]="100%"></nv-block>

Version 3

html<div class="max-h-full"></div>

Webcomponents

Version 2

html<nv-block max-height="100%"></nv-block>

Version 3

html<div class="max-h-full"></div>

MaxWidth#

Use tailwind’s max-width utility classes directly.

Blazor

Version 2

html<NVBlock MaxWidth="100%"></NVBlock>

Version 3

html<div class="max-w-full"></div>

React

Version 2

html<NvBlock maxWidth="100%"></NvBlock>

Version 3

html<div className="max-w-full"></div>

Angular

Version 2

html<nv-block [maxWidth]="100%"></nv-block>

Version 3

html<div class="max-w-full"></div>

Webcomponents

Version 2

html<nv-block max-width="100%"></nv-block>

Version 3

html<div class="max-w-full"></div>

MB#

See Margin

MD#

Removed, use tailwind’s media queries instead.

MinHeight#

Use tailwind’s min-height utility classes directly.

Blazor

Version 2

html<NVBlock MinHeight="auto"></NVBlock>

Version 3

html<div class="min-h-auto"></div>

React

Version 2

html<NvBlock minHeight="auto"></NvBlock>

Version 3

html<div className="min-h-auto"></div>

Angular

Version 2

html<nv-block [minHeight]="auto"></nv-block>

Version 3

html<div class="min-h-auto"></div>

Webcomponents

Version 2

html<nv-block min-height="auto"></nv-block>

Version 3

html<div class="min-h-auto"></div>

MinWidth#

Use tailwind’s min-width utility classes directly.

Blazor

Version 2

html<NVBlock MinWidth="auto"></NVBlock>

Version 3

html<div class="min-w-auto"></div>

React

Version 2

html<NvBlock minWidth="auto"></NvBlock>

Version 3

html<div className="min-w-auto"></div>

Angular

Version 2

html<nv-block [minWidth]="auto"></nv-block>

Version 3

html<div class="min-w-auto"></div>

Webcomponents

Version 2

html<nv-block min-width="auto"></nv-block>

Version 3

html<div class="min-w-auto"></div>

ML#

See Margin

MR#

See Margin

MT#

See Margin

MX#

See Margin

MY#

See Margin

OnBlur#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnBlur="OnBlur"></NVBlock>

Version 3

html<input @onblur="OnBlur" />

OnChange#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnChange="OnChange"></NVBlock>

Version 3

html<input @onchange="OnChange" />

OnClick#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnClick="OnClick"></NVButton>

Version 3

html<NvButton @onclick="OnClick"></NvButton>

OnFocus#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnFocus="OnFocus"></NVBlock>

Version 3

html<input @onfocus="OnFocus" />

OnInput#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnInput="OnInput"></NVBlock>

Version 3

html<input @oninput="OnInput" />

OnKeyDown#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnKeyDown="OnKeyDown"></NVBlock>

Version 3

html<input @onkeydown="OnKeyDown" />

OnKeyPress#

Removed, use @onkeydown

OnKeyUp#

Use native event bindings from your framework.

Blazor

Version 2

html<NVBlock Tag="input" OnKeyUp="OnKeyUp"></NVBlock>

Version 3

html<input @onkeyup="OnKeyUp" />

OnMouseDown#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseDown="OnMouseDown"></NVButton>

Version 3

html<NvButton @onmousedown="OnMouseDown"></NvButton>

OnMouseEnter#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseEnter="OnMouseEnter"></NVButton>

Version 3

html<NvButton @onmouseenter="OnMouseEnter"></NvButton>

OnMouseMove#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseMove="OnMouseMove"></NVButton>

Version 3

html<NvButton @onmousemove="OnMouseMove"></NvButton>

OnMouseOut#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseOut="OnMouseOut"></NVButton>

Version 3

html<NvButton @onmouseout="OnMouseOut"></NvButton>

OnMouseOver#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseOver="OnMouseOver"></NVButton>

Version 3

html<NvButton @onmouseover="OnMouseOver"></NvButton>

OnMouseUp#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton OnMouseUp="OnMouseUp"></NVButton>

Version 3

html<NvButton @onmouseup="OnMouseUp"></NvButton>

Opacity#

Use tailwind’s opacity utility classes directly.

Blazor

Version 2

html<NVBlock Opacity="0"></NVBlock>

Version 3

html<div class="opacity-0"></div>

React

Version 2

html<NvBlock opacity="0"></NvBlock>

Version 3

html<div className="opacity-0"></div>

Angular

Version 2

html<nv-block [opacity]="0"></nv-block>

Version 3

html<div class="opacity-0"></div>

Webcomponents

Version 2

html<nv-block opacity="0"></nv-block>

Version 3

html<div class="opacity-0"></div>

Overflow#

Use tailwind’s opacity utility classes directly.

Blazor

Version 2

html<NVBlock Overflow="@Overflow.AUTO"></NVBlock>

Version 3

html<div class="overflow-auto"></div>

React

Version 2

html<NvBlock overflow="auto"></NvBlock>

Version 3

html<div className="overflow-auto"></div>

Angular

Version 2

html<nv-block [overflow]="auto"></nv-block>

Version 3

html<div class="overflow-auto"></div>

Webcomponents

Version 2

html<nv-block overflow="auto"></nv-block>

Version 3

html<div class="overflow-auto"></div>

P#

See Padding

Pad#

Not supported, use CSS or Tailwind spacing utilities (gap-*, space-*, m-*) instead.

Padding#

Use tailwind’s padding utility classes directly.

Blazor

Version 2

html<NVBlock Padding="1 . ."></NVBlock>

Version 3

html<div class="pt-1"></div>

React

Version 2

html<NvBlock padding="1 . ."></NvBlock>

Version 3

html<div className="pt-1"></div>

Angular

Version 2

html<nv-block [padding]="1 . ."></nv-block>

Version 3

html<div class="pt-1"></div>

Webcomponents

Version 2

html<nv-block padding="1 . ."></nv-block>

Version 3

html<div class="pt-1"></div>

PB#

See Padding

PL#

See Padding

Position#

Use tailwind’s position utility classes directly.

Blazor

Version 2

html<NVBlock Position="@Position.RELATIVE"></NVBlock>

Version 3

html<div class="relative"></div>

React

Version 2

html<NvBlock position="relative"></NvBlock>

Version 3

html<div className="relative"></div>

Angular

Version 2

html<nv-block [position]="relative"></nv-block>

Version 3

html<div class="relative"></div>

Webcomponents

Version 2

html<nv-block position="relative"></nv-block>

Version 3

html<div class="relative"></div>

PR#

See Padding

PreventDefault#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton PreventDefault="onclick" OnClick="OnClick"></NVButton>

Version 3

html<NvButton @onclick:preventDefault="true" @onclick="OnClick"></NvButton>

PT#

See Padding

PX#

See Padding

PY#

See Padding

Use tailwind’s layout utility classes directly.

Blazor

Version 2

html<NVBlock Right="0"></NVBlock>

Version 3

html<div class="right-[0]"></div>

React

Version 2

html<NvBlock right="0"></NvBlock>

Version 3

html<div className="right-[0]"></div>

Angular

Version 2

html<nv-block [right]="0"></nv-block>

Version 3

html<div class="right-[0]"></div>

Webcomponents

Version 2

html<nv-block right="0"></nv-block>

Version 3

html<div class="right-[0]"></div>

Row#

Row has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

Self#

Use tailwind’s align-self utility classes directly.

Blazor

Version 2

html<NVBlock Self="@Self.AUTO"></NVBlock>

Version 3

html<div class="self-auto"></div>

React

Version 2

html<NvBlock self="auto"></NvBlock>

Version 3

html<div className="self-auto"></div>

Angular

Version 2

html<nv-block [self]="auto"></nv-block>

Version 3

html<div class="self-auto"></div>

Webcomponents

Version 2

html<nv-block self="auto"></nv-block>

Version 3

html<div class="self-auto"></div>

SetRef#

Use native ref bindings from your framework.

Blazor

Version 2

csharp<NVBlock SetRef="@OnSetRef"></NVBlock>
...
void OnSetRef(ElementReference r)
{
  // DO SOMETHING WITH THE ELEMENT REFERENCE
}

Version 3

csharp<div @ref="blockRef"></div>

@code {
    private ElementReference blockRef;

    protected override void OnAfterRender(bool firstRender)
    {
        if (firstRender)
        {
            OnSetRef(blockRef);
        }
    }

    void OnSetRef(ElementReference r)
    {
        // DO SOMETHING WITH THE ELEMENT REFERENCE
        Console.WriteLine($"ElementReference acquired: {r}");
    }
}

Shrink#

Use tailwind’s flex-shrink utility classes directly.

Blazor

Version 2

html<NVBlock Shrink="0"></NVBlock>

Version 3

html<div class="shrink-0"></div>

React

Version 2

html<NvBlock shrink="auto"></NvBlock>

Version 3

html<div className="shrink-0"></div>

Angular

Version 2

html<nv-block [shrink]="0"></nv-block>

Version 3

html<div class="shrink-0"></div>

Webcomponents

Version 2

html<nv-block shrink="0"></nv-block>

Version 3

html<div class="shrink-0"></div>

SM#

Removed, use tailwind’s media queries instead.

Src#

Add the src attribute directly as a native html attribute. Will work on native html elements, or any nova component.

Blazor

Version 2

html<NVBlock Tag="img" Src="http://hanami.be/img/logo.gif"></NVBlock>

Version 3

html<img src="http://hanami.be/img/logo.gif" />

Stack#

Stack has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StackFlex#

StackFlex has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StackItemFlex#

StackItemFlex has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StackItemLead#

StackItemLead has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StackItemTail#

StackItemTail has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StackVertical#

StackVertical has been removed, use flex-box and grid utility classes instead for a more modern layout. Alternatively, use the deprecated components nv-stack and nv-row for a similar approach.

StopPropagation#

Use native event bindings from your framework.

Blazor

Version 2

html<NVButton StopPropagation="onclick" OnClick="OnClick"></NVButton>

Version 3

html<NvButton @onclick:stopPropagation="true" @onclick="OnClick"></NvButton>

Style#

Use the native html style tag directly.

Blazor

Version 2

html<NVAlert Style="font-weight:bold;" />

Version 3

html<NvAlert style="font-weight:bold;" />

Tag#

Use the tag directly.

Blazor

Version 2

html<NVBlock Tag="a"></NVBlock>

Version 3

html<a></a>

Target#

Use the native html attribute directly.

Blazor

Version 2

html<NVBlock Tag="a" Target="_target"></NVBlock>

Version 3

html<a target="_blank"></a>

TextAlign#

Use tailwind’s text-align utility classes directly.

Blazor

Version 2

html<NVBlock TextAlign="@TextAlign.CENTER"></NVBlock>

Version 3

html<div class="text-center"></div>

React

Version 2

html<NvBlock textAlign="center"></NvBlock>

Version 3

html<div className="text-center"></div>

Angular

Version 2

html<nv-block [textAlign]="center"></nv-block>

Version 3

html<div class="text-center"></div>

Webcomponents

Version 2

html<nv-block text-align="center"></nv-block>

Version 3

html<div class="text-center"></div>

TextColor#

Use tailwind’s text-color utility classes directly.

Blazor

Version 2

html<NVBlock TextColor="orange-500"></NVBlock>

Version 3

html<div class="text-orange-500"></div>

React

Version 2

html<NvBlock textColor="orange-500"></NvBlock>

Version 3

html<div className="text-orange-500"></div>

Angular

Version 2

html<nv-block [textColor]="orange-500"></nv-block>

Version 3

html<div class="text-orange-500"></div>

Webcomponents

Version 2

html<nv-block text-color="orange-500"></nv-block>

Version 3

html<div class="text-orange-500"></div>

ActiveTextColor#

Use the tailwind’s active modifier with text-color utility classes directly.

Blazor

Version 2

html<NVBlock ActiveTextColor="orange-500"></NVBlock>

Version 3

html<div class="active:text-orange-500"></div>

React

Version 2

html<NvBlock activeTextColor="orange-500"></NvBlock>

Version 3

html<div className="active:text-orange-500"></div>

Angular

Version 2

html<nv-block [activeTextColor]="orange-500"></nv-block>

Version 3

html<div class="active:text-orange-500"></div>

Webcomponents

Version 2

html<nv-block active-text-color="orange-500"></nv-block>

Version 3

html<div class="active:text-orange-500"></div>

HoverTextColor#

Use the tailwind’s hover modifier with text-color utility classes directly.

Blazor

Version 2

html<NVBlock HoverTextColor="orange-500"></NVBlock>

Version 3

html<div class="hover:text-orange-500"></div>

React

Version 2

html<NvBlock hoverTextColor="orange-500"></NvBlock>

Version 3

html<div className="hover:text-orange-500"></div>

Angular

Version 2

html<nv-block [hoverTextColor]="orange-500"></nv-block>

Version 3

html<div class="hover:text-orange-500"></div>

Webcomponents

Version 2

html<nv-block hover-text-color="orange-500"></nv-block>

Version 3

html<div class="hover:text-orange-500"></div>

TextSize#

Use tailwind’s font-size utility classes directly.

Blazor

Version 2

html<NVBlock TextSize="@TextSize.SM"></NVBlock>

Version 3

html<div class="text-sm"></div>

React

Version 2

html<NvBlock textSize="sm"></NvBlock>

Version 3

html<div className="text-sm"></div>

Angular

Version 2

html<nv-block [textSize]="sm"></nv-block>

Version 3

html<div class="text-sm"></div>

Webcomponents

Version 2

html<nv-block text-size="sm"></nv-block>

Version 3

html<div class="text-sm"></div>

Title#

Use the native html attribute directly.

Blazor

Version 2

html<NVBlock Tag="a" Title="title"></NVBlock>

Version 3

html<a title="title"></a>

Top#

Use tailwind’s layout utility classes directly.

Blazor

Version 2

html<NVBlock Top="0"></NVBlock>

Version 3

html<div class="top-[0]"></div>

React

Version 2

html<NvBlock top="0"></NvBlock>

Version 3

html<div className="top-[0]"></div>

Angular

Version 2

html<nv-block [top]="0"></nv-block>

Version 3

html<div class="top-[0]"></div>

Webcomponents

Version 2

html<nv-block top="0"></nv-block>

Version 3

html<div class="top-[0]"></div>

VerticalAlign#

Use tailwind’s vertical-align utility classes directly.

Blazor

Version 2

html<NVBlock VerticalAlign="@VerticalAlign.BASELINE"></NVBlock>

Version 3

html<div class="align-baseline"></div>

React

Version 2

html<NvBlock verticalAlign="baseline"></NvBlock>

Version 3

html<div className="align-baseline"></div>

Angular

Version 2

html<nv-block [verticalAlign]="baseline"></nv-block>

Version 3

html<div class="align-baseline"></div>

Webcomponents

Version 2

html<nv-block vertical-align="baseline"></nv-block>

Version 3

html<div class="align-baseline"></div>

WFull#

Use tailwind’s width utility classes directly.

Blazor

Version 2

html<NVBlock WFull></NVBlock>

Version 3

html<div class="w-full"></div>

React

Version 2

html<NvBlock wFull></NvBlock>

Version 3

html<div className="w-full"></div>

Angular

Version 2

html<nv-block wFull></nv-block>

Version 3

html<div class="w-full"></div>

Webcomponents

Version 2

html<nv-block w-full></nv-block>

Version 3

html<div class="w-full"></div>

WhiteSpace#

Use tailwind’s white-space utility classes directly.

Blazor

Version 2

html<NVBlock WhiteSpace="@WhiteSpace.NOWRAP"></NVBlock>

Version 3

html<div class="whitespace-nowrap"></div>

React

Version 2

html<NvBlock whiteSpace="nowrap"></NvBlock>

Version 3

html<div className="whitespace-nowrap"></div>

Angular

Version 2

html<nv-block [whiteSpace]="nowrap"></nv-block>

Version 3

html<div class="whitespace-nowrap"></div>

Webcomponents

Version 2

html<nv-block whiteSpace="nowrap"></nv-block>

Version 3

html<div class="whitespace-nowrap"></div>

Width#

Use tailwind’s width utility classes directly.

Blazor

Version 2

html<NVBlock Width="100px"></NVBlock>

Version 3

html<div class="w-[100px]"></div>

React

Version 2

html<NvBlock width="100px"></NvBlock>

Version 3

html<div className="w-[100px]"></div>

Angular

Version 2

html<nv-block [width]="100px"></nv-block>

Version 3

html<div class="w-[100px]"></div>

Webcomponents

Version 2

html<nv-block width="100px"></nv-block>

Version 3

html<div class="w-[100px]"></div>

Wrap#

Use tailwind’s flex-wrap utility classes directly.

Blazor

Version 2

html<NVBlock Wrap="@Wrap.WRAP"></NVBlock>

Version 3

html<div class="flex-wrap"></div>

React

Version 2

html<NvBlock wrap="wrap"></NvBlock>

Version 3

html<div className="flex-wrap"></div>

Angular

Version 2

html<nv-block [wrap]="wrap"></nv-block>

Version 3

html<div class="flex-wrap"></div>

Webcomponents

Version 2

html<nv-block wrap="wrap"></nv-block>

Version 3

html<div class="flex-wrap"></div>

XL#

Removed, use tailwind’s media queries instead.

XL2#

Removed, use tailwind’s media queries instead.

ZIndex#

Use tailwind’s z-index utility classes directly.

Blazor

Version 2

html<NVBlock ZIndex="0"></NVBlock>

Version 3

html<div class="z-0"></div>

React

Version 2

html<NvBlock zIndex="0"></NvBlock>

Version 3

html<div className="z-0"></div>

Angular

Version 2

html<nv-block [zIndex]="0"></nv-block>

Version 3

html<div class="z-0"></div>

Webcomponents

Version 2

html<nv-block z-index="0"></nv-block>

Version 3

html<div class="z-0"></div>