Adds input masking to text fields in Payload collections and globals using the IMask library. The plugin is registered in the Payload config, and each text field defines its mask through the field's custom options. Options control whether the masked value is shown and whether the masked or raw value is saved.
An input mask plugin for Payload
Installation
npm i payload-mask-plugin17
Stars
0
Forks
2
Open Issues
2 years ago
Last Updated
0
Weekly Downloads
v1.0.2
npm Version
19.1 KB
Unpacked Size
2
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/812111820-root)<a href="https://payloaddirectory.dev/plugins/812111820-root"><img src="https://payloaddirectory.dev/badge/812111820-root.svg" alt="Payload Directory"></a>README

Install the plugin and use on a text field in a Collection or Global.
yarn add payload-mask-plugin
// payload.config.ts
import { maskPlugin } from 'payload-mask-plugin'
export default buildConfig({
...
plugins: [maskPlugin({ enabled: true })],
})
// Add to a text field on a Collection or Global
const Examples: CollectionConfig = {
slug: "examples",
fields: [
{
type: "text",
name: "example_mask",
label: "Input Mask Example",
placeholder: "Enter a US phone number"
custom: {
mask: "+{1}(000)000-00-00",
showValue: true,
saveMaskedValue: false
},
},
],
};
export default Examples;
encrypted fields
Encrypt field values at rest in the database with a drop-in encryptedField helper
6955/wk83v3
payload icon picker
Icon picker field with searchable dropdown or drawer grid that stores the icon name and raw SVG
690/wk52v3
payload phone number plugin
Phone number field with country selection, formatting and validation powered by libphonenumber-js
64114/wk16v3
payload plugin json form builder
Edit a Payload JSON field as real admin fields using a builder inside the admin panel
580/wk29v3
payload plugin icons
Icon picker field for Payload with Lucide and Phosphor providers and a React rendering component
570/wk2v3
select search field
Server-backed searchable select field for Payload with custom search functions
560/wk15v3