Skip to Content
Notion UI

Database Properties

Database property objects are rendered in the Notion UI as database columns.

Database properties are represented as columns in the Notion database. They are defined by CellPlugin's that specify how the property behaves and renders in the Notion UI.

ColumnInfo

A database column object ColumnInfo<TPlugin> consists of the common properties and the plugin-specific configuration.

Common Properties

Prop

Type

Plugin Configuration

The plugin-specific configuration ColumnConfig<TPlugin> for the column.

Prop

Type

ColumnDefs

A ColumnDefs is an array of column definitions ColumnInfo<TPlugin> where the config property may be optional.

const columnDefs: ColumnDefs = [
  {
    id: "col-1",
    name: "Title",
    type: "title",
    // the `config` optional
    config: { showIcon: true },
  },
];

Row

A Row<TPlugins> represents a row of data in the table.

API Reference

Prop

Type

Cell

A Cell<TPlugin> contains the id and value, where the value is determined by the plugin’s data type.

Common Properties

Prop

Type

Examples

Title Cell

// Cell<TitlePlugin>
{
  id: "e79a0b74-3aba-4149-9f74-0bb5791a6ee6",
  value:  "New title",
}

Text Cell

// Cell<TextPlugin>
{
  id: "e79a0b74-3aba-4149-9f74-0bb5791a6ee6",
  value: "Some text..."
}

Checkbox Cell

// Cell<CheckboxPlugin>
{
  id: "e79a0b74-3aba-4149-9f74-0bb5791a6ee6",
  value: true,
}

On this page