Native Web Components playground

Nova v3.37.0

Preview

Web Components

nv-fieldtextarea migration

Moving from message and validation to description and errorDescription.

← nv-fieldtextarea

Migration Guide for nv-fieldtextarea

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

Deprecations

1. prop message -> description

The message property has been deprecated in favor of description. This change aligns the property name more closely with its function, which is to provide additional context or information about the input field.

Old Usage:

html<nv-fieldtextarea message="Description of the input field"></nv-fieldtextarea>

New Usage:

html<nv-fieldtextarea description="Description of the input field"></nv-fieldtextarea>

2. prop validation -> errorDescription

The validation property has been deprecated in favor of errorDescription. This change clarifies that this property is used to describe an error related to the input field.

Old Usage:

html<nv-fieldtextarea validation="Error occurred"></nv-fieldtextarea>

New Usage:

html<nv-fieldtextarea error error-description="Error occurred"></nv-fieldtextarea>