middag-react
    Preparing search index...

    Interface DocumentFormField

    National document field (CPF, CNPJ, SSN, etc.) with locale-aware validation.

    interface DocumentFormField {
        component: "document";
        key: string;
        kind: "field";
        props: FieldPropsBase & {
            documentMasks?: Record<string, FormFieldDocumentMask>;
            documentScope?: "any" | "person" | "company";
            documentType?: string;
        };
    }

    Hierarchy

    • FieldNodeBase
      • DocumentFormField
    Index

    Properties

    Properties

    component: "document"
    key: string
    kind: "field"
    props: FieldPropsBase & {
        documentMasks?: Record<string, FormFieldDocumentMask>;
        documentScope?: "any" | "person" | "company";
        documentType?: string;
    }

    Type Declaration

    • OptionaldocumentMasks?: Record<string, FormFieldDocumentMask>

      Host-defined custom masks (merged with built-in).

    • OptionaldocumentScope?: "any" | "person" | "company"

      Restrict to person, company, or both (default: "any").

    • OptionaldocumentType?: string

      Validator.js locale ("pt-BR", "en-US", etc.), "generic", or custom key.