Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 820 Bytes

customType.md

File metadata and controls

45 lines (40 loc) · 820 Bytes

Custom type

Guide for https://YOUR_DOMAIN.prismic.io/masks/

Type

Set the document type to repeatable

Structure

{
  "Main" : {
    "score" : {
      "type" : "Group",
      "config" : {
        "fields" : {
          "name" : {
            "type" : "Text",
            "config" : {
              "label" : "name",
              "placeholder" : "Name"
            }
          },
          "distance" : {
            "type" : "Number",
            "config" : {
              "label" : "distance",
              "placeholder" : "distance"
            }
          },
          "metric" : {
            "type" : "Text",
            "config" : {
              "label" : "metric",
              "placeholder" : "metric"
            }
          }
        },
        "label" : "score"
      }
    }
  }
}