Antd is a popular UI framework for React, and it comes with a set of built-in form validation features. Here are some of the validation rules that come with Antd:
required:The field is required and must be filled in by the user.
unrequired:The field is optional, and the user can leave it blank.
min:The field must be longer than a specified minimum length.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
max:The field must be shorter than a specified maximum length.
email:The field must contain a valid email address.
url:The field must contain a valid URL.
password:The field must contain a valid password (usually with a certain length and including at least one uppercase letter, one lowercase letter, one number, and one special character).
tel:The field must contain a valid phone number.
number:The field must contain a valid number (with optional support for decimal points and negative sign).
integer:The field must contain a valid integer (no decimal points).
date:The field must contain a valid date in the format 'YYYY-MM-DD'.
datetime:The field must contain a valid date and time in the format 'YYYY-MM-DD HH:mm:ss'.
select:The field must be a valid option from a given list of options.
Please note that these are the commonly used validation rules in Antd, and there might be more rules available depending on the version you are using. Additionally, you can also create your own custom validation rules if the built-in ones do not meet your needs.