Skip to main content

PresentifyProvider

The PresentifyProvider is a parent provider used in the .mdx file to wrap and presentify code logic. It has the logic to parse .mdx files and render slides. In addition, it adds a searchParams page, allowing you to load any slide from the link, or show a not found page if the slide is not found. Moreover, it has keyboard shortcuts for manipulating the presentation. It also accepts prop options, with the options described in the table below.

PresentifyProviders Options

OptionTypeOptionalDefaultDescription
themedark / light✔️lightcode syntax highlighter theme (dark = vsDark, light = github)
useFiraCodeboolean✔️falseuse firaCode font with ligatures in Code syntax highlighter
classNamestring✔️noneset className to slide parent div
backgroundColorstring✔️whiteset background color to slide
backgroundImgstring✔️noneset background Image to slide
layoutnormal / center✔️centerset layout of slide

Keyboard Shortcuts

KeyDescription
Arrow upchange to the next slide
Arrow Downchange to the previous slide
Arrow leftchange to the next slide
Arrow rightchange to the previous slide