1. Documentation
  2. Basic Styling
  3. Tables
ReadmeGitHub
  • Introduction
  • Quickstart
  • Text
  • Code
  • Lists
  • Tables
  • Accordion
  • Badge
  • Button
  • Callout
  • Code Block
  • Code Block Group
  • Code Snippet
  • Columns
  • Custom components
  • GitHub
  • Hover Card
  • Mermaid
  • Properties
  • Related Topics
  • Tabs
  • Tree
  • Images
  • Video
  • Files
  • Grain
  • Shade
  • Moss
  • Configuration
  • Content
  • Navigation
  • Site Identity
  • Appearance
  • Header and Footer
  • Fonts
  • Icons
  • Integrations
  • Search
  • OpenAPI
  • AI Chat
  • React Router
  • Astro
  • Next.js
  • Cloudflare
  • Vercel
  • robots.txt
  • sitemap.xml
  • JSON-LD
  • rss.xml
  • llms.txt
  • llms-full.txt
  • .md endpoints

Tables

Present compact comparisons, option defaults, and compatibility information in a readable grid.

Loading documentation…

Lists< PreviousAccordionNext >

Powered by heyo

On this page

Start with a clear comparisonUse alignment to make values easier to scanGive wide tables room to breatheProperties
FrameworkIntegration
React Router@heyo-sh/heyo-docs/vite
Next.js@heyo-sh/heyo-docs/next
Astro@heyo-sh/heyo-docs/astro
| Framework    | Integration                       || ------------ | --------------------------------- || React Router | `@heyo-sh/heyo-docs/vite`        || Next.js      | `@heyo-sh/heyo-docs/next`        || Astro        | `@heyo-sh/heyo-docs/astro`       |

Tables are for comparison, not for prose. Use one when every item has the same fields and readers need to compare values across rows: supported frameworks, plan limits, configuration defaults, or a short compatibility matrix. The theme allows a table to scroll horizontally on small screens, giving wide comparisons more room without shrinking their content.

Start with a clear comparison

Write a short, specific header for every column, then keep each column's values consistent. A reader should be able to scan down a column without interpreting a different kind of information in each row.

md
| Option    | Default   | Use when                         || --------- | --------- | -------------------------------- || `content` | `content` | Choosing the directory for MDX   || `siteUrl` | —         | Publishing canonical URLs        || `title`   | —         | Naming the documentation website |

This is a good fit for a configuration reference, where the table exposes the facts and the prose immediately after it can recommend a choice. If one cell needs a paragraph of explanation, move that explanation below the table or into a dedicated section.

Use alignment to make values easier to scan

Markdown supports left, centre, and right alignment with colons in the separator row. Right-align numbers, centre short status values, and leave descriptive text left-aligned. Alignment is a small cue, but it makes a pricing, limits, or support matrix much easier to read.

PlanProjectsSupport
Starter3Email
Team20Priority
EnterpriseUnlimitedDedicated
| Plan       | Projects | Support || :--------- | -------: | :-----: || Starter    |        3 | Email   || Team       |       20 | Priority || Enterprise | Unlimited | Dedicated |

Use this for plan limits, response times, and other values readers compare vertically. Avoid more columns than a reader needs to make the decision; even though the table can scroll on mobile, a smaller comparison is always easier to understand.

Give wide tables room to breathe

For a wide compatibility matrix, reduce the content to the fields that affect the decision and move detailed notes underneath. A mobile reader can scroll the table horizontally, but they should not need to decode dense abbreviations or five-line cells to understand it.

Properties

| Header | Header |table headerrequired

Defines the table's columns. Write names that explain what a value means without relying on the surrounding prose.

| --- | --- |table separatorrequired

Marks the header boundary and supplies one cell for every column. Add colons to control alignment.

:---left alignmentoptional

Left-aligns values in a column. This is the natural choice for labels and descriptive text.

---:right alignmentoptional

Right-aligns values in a column. Use it for counts, prices, sizes, and other values readers compare by magnitude.

:---:centre alignmentoptional

Centres short status values such as support level or availability. Do not use it for paragraph-length text.

| Value | Value |table rowoptional

Adds a data row. Keep the meaning of each column consistent in every row so readers can compare values quickly.