@nouance/payload-better-fields-plugin
Version:
A Payload plugin that aims to provide improved fields for the admin panel
23 lines (22 loc) • 527 B
TypeScript
import { type Field, type TextField } from 'payload';
export type Config = {
initial?: string;
separator?: string;
};
type Combo = (
/**
* Field overrides
*/
overrides: Omit<TextField, 'type'>,
/**
* An array of string mapping the field path names, nested fields are supported here
* @default {string[]} ['title']
*/
fieldToUse: string[],
/**
* Additional configuration for processing the value
* @default { separator: ' ' }
*/
options?: Config) => Field[];
export declare const ComboField: Combo;
export {};