Angular playground

Nova v3.38.0

Preview

Angular

Panel

Moving from the panel to a plain element with Tailwind classes.

Introduction#

In version 2 of our design system, Panel was a straightforward component whose primary purpose was to apply specific CSS properties through attributes. It inherited the same styling logic as Base, allowing developers to add layout or display-related properties without manually writing repeated class names.

Why It’s Discontinued#

Like Base, Panel became unnecessary with our shift to Tailwind CSS in version 3. Tailwind’s utility-first approach lets developers apply equivalent (or more precise) styling directly in their markup. This eliminates the need for an extra component wrapper and simplifies the development process.

For a deeper explanation of how to migrate from attribute-based styling to Tailwind utilities, refer to the [Base page](../../content/migration/base-component.md). You’ll find more details on the underlying reasons for the change, along with best practices for transitioning your existing components to a utility-first approach.

Alternative#

Nova 2 example#

html<NvPanel P="8" M="8" Level="1"></NvPanel>

Nova 3 example#

html<div class="p-8 m-8 shadow-xs"></div>

As shown above, you can use any HTML tag along with Tailwind classes.