The Tina schema defines the shape of your content.
Tina uses a "content-modeling as code" approach.
Specifically, the schema
property in your TinaCMS Config file determines data mapping between your content store and the editor.
Each item in the schema.collections
array represents a different content structure.
Each of these contains an array of fields
to control what appears in the TinaCMS editor.
// tina/config.{ts,js,tsx}import { defineConfig } from 'tinacms'export default defineConfig({// ...schema: {collections: [//⤵️ each item is a different content structure{label: 'Blog Posts',name: 'post',path: 'content/posts',fields: [ //⤵️ each item is a new field in the editor{type: 'string',label: 'Title',name: 'title',},{type: 'string',label: 'Post Body',name: 'body',isBody: true,},],},{...}],},})
© TinaCMS 2019–2025