> ## Documentation Index
> Fetch the complete documentation index at: https://aidocs.zorid.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Fields

> The fields core plugin renders typed frontmatter editors for notes and resolves .ztype type definitions so field values stay consistent across the vault.

The Fields plugin is responsible for rendering the **typed field group** above (or beside) Markdown content and for resolving `.ztype` Types via the Type registry.

It is one of two core plugins (with Data Views) intended to become an **extension platform** — other plugins can register custom field editors and contribute Types.

## v0 scope

* Read `.zorid/types/*.ztype` and build the Type registry.
* Resolve `zorid.type` in active note frontmatter.
* Render a labeled field group with Type-aware editors: `select`, `multiselect`, `date`, `datetime`, `string`, `int`, `float`, `boolean`.
* Preserve unknown / ad-hoc fields and show them in a separate "Other fields" section.
* Write frontmatter updates back to the Markdown file atomically.
* Surface validation warnings instead of silently deleting invalid values.

## Public API (for other plugins)

```ts theme={null}
const fields = await ctx.plugins.getApi("zorid.core.fields");

ctx.register.dispose(
  fields.registerEditor({
    type: "my-plugin.color",
    mount(container, value, onChange) {
      /* render a color picker */
      return () => {};
    },
  })
);
```

<Card title="Source" icon="github" href="https://github.com/zorid-app/Zorid/blob/main/docs/core-plugins/07-fields.md">
  Full Fields plugin plan on GitHub.
</Card>
