---
title: Slides
description: The standard components of json-render-pptx.
---

Slide components. A `Deck` is the root and holds `Slide` elements. See the [overview](/components) for how to read the tables.

## Deck

The presentation. Must be the root element. Children must be Slide components. Takes child elements.

<img src="/gallery/pptx-Deck.png" alt="Deck rendered in LibreOffice" width="800" height="451" />

Deck in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `title` | `string` | yes | File title shown in document properties. |
| `author` | `string` | yes |  |
| `subject` | `string` | yes |  |

```json
{
  "type": "Deck",
  "props": {
    "title": "Quarterly review",
    "author": "Finance team",
    "subject": null
  },
  "children": []
}
```

## Slide

One slide. Children are stacked top to bottom in reading order. Put the Title first. Takes child elements.

<img src="/gallery/pptx-Slide.png" alt="Slide rendered in LibreOffice" width="1636" height="938" />

Slide in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `layout` | `enum` | yes | "title": cover slide, content centered. "title-content": a Title followed by content, the default. "section": a divider with an accent background. "blank": no padding. One of `title`, `title-content`, `section`, `blank`. |
| `background` | `string` | yes | Hex background color. Null uses the theme. |
| `notes` | `string` | yes | Speaker notes. At most 2000 characters. |
| `slideNumber` | `boolean` | yes | Show the slide number in the bottom right corner. |

```json
{
  "type": "Slide",
  "props": {
    "layout": "title-content",
    "background": null,
    "notes": null,
    "slideNumber": null
  },
  "children": []
}
```

## Columns

Places its children side by side in equal widths. Children must be Column components; use 2 or 3. Takes child elements.

<img src="/gallery/pptx-Columns.png" alt="Columns rendered in LibreOffice" width="800" height="451" />

Columns in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `gap` | `number` | yes | Inches between columns. Default 0.4. 0 to 1. |

```json
{
  "type": "Columns",
  "props": {
    "gap": 0.4
  },
  "children": []
}
```

## Column

One column inside Columns. Holds Subtitle, Text, BulletList, Table, Chart or Image elements. Takes child elements.

<img src="/gallery/pptx-Column.png" alt="Column rendered in LibreOffice" width="800" height="451" />

Column in LibreOffice 26.8.3.1.

This component has no props.

```json
{
  "type": "Column",
  "props": {},
  "children": []
}
```

## Title

The slide heading. Keep it under 8 words. Has no children: use `"children": []`.

<img src="/gallery/pptx-Title.png" alt="Title rendered in LibreOffice" width="800" height="451" />

Title in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `text` | `string` | no | At most 90 characters. |
| `align` | `enum` | yes | One of `left`, `center`, `right`. |
| `color` | `string` | yes |  |

```json
{
  "type": "Title",
  "props": {
    "text": "Revenue grew 24% year over year",
    "align": null,
    "color": null
  },
  "children": []
}
```

## Subtitle

A line of text under the Title, mostly on cover and section slides. Has no children: use `"children": []`.

<img src="/gallery/pptx-Subtitle.png" alt="Subtitle rendered in LibreOffice" width="800" height="451" />

Subtitle in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `text` | `string` | no | At most 140 characters. |
| `align` | `enum` | yes | One of `left`, `center`, `right`. |
| `color` | `string` | yes |  |

```json
{
  "type": "Subtitle",
  "props": {
    "text": "Q3 2026 business review",
    "align": null,
    "color": null
  },
  "children": []
}
```

## Text

A paragraph of body text. Has no children: use `"children": []`.

<img src="/gallery/pptx-Text.png" alt="Text rendered in LibreOffice" width="800" height="451" />

Text in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `text` | `string` | no | At most 600 characters. |
| `fontSize` | `number` | yes | Points. Null uses the theme size. 10 to 40. |
| `bold` | `boolean` | yes |  |
| `italic` | `boolean` | yes |  |
| `align` | `enum` | yes | One of `left`, `center`, `right`. |
| `color` | `string` | yes |  |

```json
{
  "type": "Text",
  "props": {
    "text": "Growth came mostly from the enterprise tier.",
    "fontSize": null,
    "bold": null,
    "italic": null,
    "align": null,
    "color": null
  },
  "children": []
}
```

## BulletList

A bulleted or numbered list. At most 6 items of about 12 words each fit well. Has no children: use `"children": []`.

<img src="/gallery/pptx-BulletList.png" alt="BulletList rendered in LibreOffice" width="800" height="451" />

BulletList in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `items` | `string[]` | no | 1 to 7 items, each at most 160 characters. |
| `ordered` | `boolean` | yes | Numbered instead of bulleted. |
| `fontSize` | `number` | yes | Points. Null uses the theme size. 10 to 32. |
| `color` | `string` | yes |  |

```json
{
  "type": "BulletList",
  "props": {
    "items": [
      "Enterprise revenue up 31%",
      "Churn down to 2.1%",
      "Two new regions launched"
    ],
    "ordered": null,
    "fontSize": null,
    "color": null
  },
  "children": []
}
```

## Table

A native table with a header row. At most 6 columns and 10 rows fit on a slide. Has no children: use `"children": []`.

<img src="/gallery/pptx-Table.png" alt="Table rendered in LibreOffice" width="800" height="451" />

Table in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `columns` | `string[]` | no | Header labels, one per column. 1 to 6 items, each at most 40 characters. |
| `rows` | `string[][]` | no | Each row has one string per column. 1 to 10 items, each at most 6 items, each at most 60 characters. |
| `fontSize` | `number` | yes | Points. Null uses a size that fits. 9 to 24. |
| `striped` | `boolean` | yes | Shade every second row. |

```json
{
  "type": "Table",
  "props": {
    "columns": [
      "Region",
      "Revenue"
    ],
    "rows": [
      [
        "EMEA",
        "$4.2M"
      ],
      [
        "Americas",
        "$6.8M"
      ]
    ],
    "fontSize": null,
    "striped": null
  },
  "children": []
}
```

## Chart

A native, editable chart (the data opens in PowerPoint's chart editor). Every series needs one value per label. Has no children: use `"children": []`.

<img src="/gallery/pptx-Chart.png" alt="Chart rendered in LibreOffice" width="1636" height="938" />

Chart in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `type` | `enum` | no | One of `bar`, `line`, `pie`, `doughnut`, `area`. |
| `title` | `string` | yes | At most 80 characters. |
| `labels` | `string[]` | no | Category labels (x axis, or one per slice). 1 to 12 items, each at most 30 characters. |
| `series` | `{ name: string; values: number[] }[]` | no | Pie and doughnut charts use only the first series. 1 to 4 items. |
| `legend` | `boolean` | yes |  |

```json
{
  "type": "Chart",
  "props": {
    "type": "bar",
    "title": "Revenue by quarter",
    "labels": [
      "Q1",
      "Q2",
      "Q3",
      "Q4"
    ],
    "series": [
      {
        "name": "Revenue",
        "values": [
          4.1,
          4.8,
          5.6,
          6.9
        ]
      }
    ],
    "legend": null
  },
  "children": []
}
```

## Image

A picture that fills the space left under the Title. Always give alt text. Has no children: use `"children": []`.

<img src="/gallery/pptx-Image.png" alt="Image rendered in LibreOffice" width="800" height="451" />

Image in LibreOffice 26.8.3.1.

| Prop | Type | Nullable | Description |
| --- | --- | --- | --- |
| `src` | `string` | no | An https URL or a data: URI. Local paths are not allowed. |
| `alt` | `string` | no | What the image shows, for screen readers. At most 200 characters. |

```json
{
  "type": "Image",
  "props": {
    "src": "https://picsum.photos/800/450?random=1",
    "alt": "A mountain lake at sunrise"
  },
  "children": []
}
```
