Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/pages/blocks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,7 @@ Hero banners with images and CTAs. 8 variants:

Organize content in tabs.

### [Table](table/index.md)

Structured data in rows and columns.

44 changes: 44 additions & 0 deletions src/pages/blocks/table/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: Table
description: Create structured data tables using markdown syntax, including formatting tips for bullet lists in cells.
---

# Table

Display structured data in rows and columns using standard markdown table syntax.

## Syntax

```markdown
| Column 1 | Column 2 | Column 3 |
| -------- | -------- | -------- |
| Value 1 | Value 2 | Value 3 |
```

## Example

| Month | Savings |
| -------- | ------- |
| January | $250 |
| February | $80 |
| March | $420 |

## Bullets in Cells

Markdown does not support bullet lists inside table cells. Use the bullet point character `•` (Unicode U+2022) with escaped `\<br/>` for line breaks.

**Syntax:**

```markdown
| Parameter | Values |
| --------- | ------------------------- |
| color | • red\<br/>• green\<br/>• blue |
```

**Example:**

| Parameter | Values |
| --------- | ---------------------------- |
| color | • red\<br/>• green\<br/>• blue |
| size | • small\<br/>• medium\<br/>• large |

1 change: 1 addition & 0 deletions src/pages/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
- [Superhero Half Width with Background Image](blocks/superhero/halfwidth/with-background-image.md)
- [Superhero Half Width with Background Image and Video](blocks/superhero/halfwidth/with-background-image-and-video.md)
- [Tab](/blocks/tab/index.md)
- [Table](/blocks/table/index.md)
- [Local Development](/localdev/index.md)
- [Deploy](/deploy/index.md)
- [Lint](/deploy/lint.md)
Expand Down
Loading