Docs

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.

APIPropertyType / valuesRequiredDescription
definePresentationtitlestringYesPresentation title. Keep it aligned with Deck title.
componentReact componentYesRoot 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.