Migration Guide for nv-fieldtext
In the latest version of the nv-fieldtext 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:
<NvFieldtext Message="Description of the input field"></NvFieldtext>
New Usage:
<NvFieldtext Description="Description of the input field"></NvFieldtext>
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:
<NvFieldtext Validation="Error occurred"></NvFieldtext>
New Usage:
<NvFieldtext Error="true" ErrorDescription="Error occurred"></NvFieldtext>
3. prop textInputType -> type#
The textInputType property has been deprecated. Use type instead.
Old Usage:
<NvFieldtext TextInputType="NvFieldtext.TextInputTypeEnum.email"></NvFieldtext>
New Usage:
<NvFieldtext Type="NvFieldtext.TypeEnum.email"></NvFieldtext>
Breaking Changes#
1. prop textInputType -> removed values#
Certain values for the textInputType property have been removed. The following values are no longer supported:
colorfileimagepasswordsearchurl