Blazor playground

Nova v3.37.0

Preview

Blazor

nv-stack migration

Replacing pad, padding and the stack item props.

← nv-stack

Migration Guide for nv-stack

Breaking Changes

1. prop padding/ pad -> removed

The padding and pad properties have been removed in favor of setting an individual padding class on the child components. The property is no longer required since the nv-stack component is no longer within a shadow dom. The props of the stack component are only used as a flex layout helper.

Old Usage:

html<nv-stack gutter="2" padding="4" pad="4">
    <nv-panel></nv-panel>
    <nv-panel></nv-panel>
</nv-stack>

New Usage:

html<nv-stack gutter="2" class="p-4">
    <nv-panel class="p-4"></nv-panel>
    <nv-panel class="p-4"></nv-panel>
</nv-stack>

2. child props StackItemFlex / StackItemLead / StackItemCenter / StackItemTail -> removed

The child props StackItemFlex / StackItemLead / StackItemCenter / StackItemTail have been removed in favor of setting an individual classes on the child components.

Old Usage:

html<nv-stack>
    <nv-panel stackitemflex></nv-panel>
    <nv-panel stackitemlead></nv-panel>
    <nv-panel stackitemcenter></nv-panel>
    <nv-panel stackitemtail></nv-panel>
</nv-stack>

New Usage:

html<nv-stack>
    <nv-panel class="nv-stack-item-flex"></nv-panel>
    <nv-panel class="nv-stack-item-lead"></nv-panel>
    <nv-panel class="nv-stack-item-center"></nv-panel>
    <nv-panel class="nv-stack-item-tail"></nv-panel>
</nv-stack>