API reference
definePresentation
Declare the title and root React component for presentation.tsx.
presentation.tsx
export default definePresentation({
title: "Quarterly update",
component: function Presentation() {
return <Deck title="Quarterly update">...</Deck>;
},
});Props reference
Keep these values literal and serializable so Canvas, Inspector, validation, and export can process them reliably.
| API | Property | Type / values | Required | Description |
|---|---|---|---|---|
| definePresentation | title | string | Yes | Presentation title. Keep it aligned with Deck title. |
| component | React component | Yes | Root component that returns exactly one Deck. |
Required fields
title is the presentation title. component is a React function that returns the one Deck root.
Use it once
presentation.tsx must default-export definePresentation(...). Keep the title on definePresentation and Deck aligned.