Skip to content
Blode.md

AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.

Type table

Display structured property and type reference tables.

Use the TypeTable component to document object shapes, API responses, and component props in a structured table.

Basic usage

Pass a type object where each key is a field name and the value describes its type, description, and constraints:

<TypeTable
  type={{
    id: {
      description: "Unique project identifier.",
      type: "string",
      required: true,
    },
    name: {
      description: "Display name of the project.",
      type: "string",
      required: true,
    },
    slug: {
      description: "URL-safe project slug.",
      type: "string",
      required: true,
    },
    customDomain: {
      description: "Custom domain if configured.",
      type: "string",
      required: false,
    },
    createdAt: {
      description: "ISO 8601 timestamp of project creation.",
      type: "string",
      required: true,
    },
  }}
/>
FieldTypeDescriptionRequired
idstringUnique project identifier.Yes
namestringDisplay name of the project.Yes
slugstringURL-safe project slug.Yes
customDomainstringCustom domain if configured.Optional
createdAtstringISO 8601 timestamp of project creation.Yes

With default values

When any field includes a default property, a Default column appears automatically:

<TypeTable
  type={{
    appearance: {
      description: "Initial color mode for the site.",
      type: '"system" | "light" | "dark"',
      default: '"system"',
      required: false,
    },
    lang: {
      description: "Default language for code blocks.",
      type: "string",
      default: '"plaintext"',
      required: false,
    },
    toc: {
      description: "Show a table of contents on each page.",
      type: "boolean",
      default: "true",
      required: false,
    },
  }}
/>
FieldTypeDescriptionRequiredDefault
appearance"system" | "light" | "dark"Initial color mode for the site.Optional"system"
langstringDefault language for code blocks.Optional"plaintext"
tocbooleanShow a table of contents on each page.Optionaltrue

Field options

Each field in the type object supports these properties:

FieldTypeDescriptionRequired
descriptionstringHuman-readable explanation of the field.Optional
typestringThe field's type annotation.Optional
requiredbooleanWhether the field is required. Defaults to the inverse of `optional`.Optional
optionalbooleanWhether the field is optional. Inverse of `required`.Optional
defaultstringDefault value shown in the table.Optional