Skip to content
Sanity CMS Plugin

Sanity CMS Table Plugin

Write STL tables inside Sanity Studio, with a live preview. Merged cells and multi-level headers included.

Overview

A Sanity Studio plugin that introduces a dedicated STL editor and live preview for building complex tables beyond the limitations of standard Portable Text tables. Table data is stored as raw STL strings and rendered using the structured-table core package.

Challenge

Sanity's default table blocks struggle with advanced layouts such as merged cells, multi-level headers, and rich formatting, making complex tables difficult to author and maintain.

Solution

Integrated Structured Table Language into Sanity Studio via a custom input and preview workflow, allowing editors to write STL directly while leveraging the structured-table package for parsing and rendering both in Studio and on the frontend.

Stack

TypeScript · Sanity Studio · React · structured-table · structured-table-cli

Impact

  • 13k+ npm downloads
  • Enabled complex table layouts with row spans, column spans, header, footer, rich cells and more
  • Improved editor experience with real-time table previews inside Sanity Studio
  • Version-control-friendly table definitions stored as readable STL strings
  • Seamless SSR-compatible rendering for frontend frameworks like Next.js