Iridium CMSIridium CMS

password

The password property is used to define a plain text value that is masked in the admin.


import { atom, text } from '@iridiumcms/core';

export const sample = atom('sample', {
  myText: text(),
});

Configuration

The password field takes an optional configuration object with the following properties:

  • maxLengthnumber
    The maximum length of the field. Defaults to Infinity.
  • minLengthnumber
    The minimum length of the field. Defaults to 0.
  • displayNamestring
    The display name of the field. Defaults to the name of the property.
  • requiredboolean
    Whether the field is required. Defaults to false.
  • layoutLAYOUT
    The layout of the field in the admin. Defaults to LAYOUT.full.
  • patternRegExp
    A regular expression pattern that the field value must match. Defaults to undefined.