Empty field

The empty field is useful in conjunction with the conditional field, in scenarios where you want one condition to not show any fields at all.

Usage example

seo: fields.conditional(
  // See fields.conditional docs for details on the conditional field
  fields.checkbox({ 
    label: 'Define custom SEO tags', 
    defaultValue: false,
  }),
  {
    // If condition is false, show… no fields!
    false: fields.empty(),

    // Otherwise, show some fields
    true: fields.object({
      title: fields.text({ label: 'Title' }),
      description: fields.text({ label: 'Description' }),
    }),
  }
),