Slides
The standard components of json-render-pptx.
Slide components. A Deck is the root and holds Slide elements. See the overview for how to read the tables.
Deck
The presentation. Must be the root element. Children must be Slide components. Takes child elements.

| Prop | Type | Nullable | Description |
|---|---|---|---|
title |
string |
yes | File title shown in document properties. |
author |
string |
yes | |
subject |
string |
yes |
{
"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.

| 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. |
{
"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.

| Prop | Type | Nullable | Description |
|---|---|---|---|
gap |
number |
yes | Inches between columns. Default 0.4. 0 to 1. |
{
"type": "Columns",
"props": {
"gap": 0.4
},
"children": []
}
Column
One column inside Columns. Holds Subtitle, Text, BulletList, Table, Chart or Image elements. Takes child elements.

This component has no props.
{
"type": "Column",
"props": {},
"children": []
}
Title
The slide heading. Keep it under 8 words. Has no children: use "children": [].

| Prop | Type | Nullable | Description |
|---|---|---|---|
text |
string |
no | At most 90 characters. |
align |
enum |
yes | One of left, center, right. |
color |
string |
yes |
{
"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": [].

| Prop | Type | Nullable | Description |
|---|---|---|---|
text |
string |
no | At most 140 characters. |
align |
enum |
yes | One of left, center, right. |
color |
string |
yes |
{
"type": "Subtitle",
"props": {
"text": "Q3 2026 business review",
"align": null,
"color": null
},
"children": []
}
Text
A paragraph of body text. Has no children: use "children": [].

| 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 |
{
"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": [].

| 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 |
{
"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": [].

| 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. |
{
"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": [].

| 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 |
{
"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": [].

| 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. |
{
"type": "Image",
"props": {
"src": "https://picsum.photos/800/450?random=1",
"alt": "A mountain lake at sunrise"
},
"children": []
}