Fields

A mock of a docs page. Every example can run in the Panel, right here. Only one runs at a time.

Text

A single line of text.

headline:
  label: Headline
  type: text
  placeholder: Something catchy…
  counter: true
  maxlength: 60

Select with options from a query

The options are the children of the products page.

product:
  label: Featured product
  type: select
  options:
    type: query
    query: site.find("products").children

Structure

A list of entries with their own fields, edited in a drawer.

links:
  label: Links
  type: structure
  fields:
    label:
      type: text
    url:
      type: url

Pages

Picks pages of the site.

related:
  label: Related pages
  type: pages
  query: site.find("products").children

Blocks

The block editor with a few block types.

text:
  label: Text
  type: blocks
  fieldsets:
    - heading
    - text
    - image

Files

Picks or uploads files.

gallery:
  label: Gallery
  type: files
  layout: cards