Skip to Content
📧 Join the Teacharium waitlist to get access. 

Configuration & Modes

Player Configuration

The config prop accepts these options:

interface PlayerConfig { showProgress?: boolean; // Show progress footer (default: true) allowPreviousStep?: boolean; // Allow going back allowSkipping?: boolean; // Allow skipping steps autoAdvance?: boolean; // Auto-advance between steps defaultStepDuration?: number; // Default step duration (ms) showTimer?: boolean; // Show timer UI debugMode?: boolean; // Enable debug logging enableKeyboardShortcuts?: boolean; // Keyboard navigation (default: true) historyMode?: "truncate" | "preserve"; // Going forward after going back: discard (default) or keep later steps stepTransition?: "none" | "fade" | "slide" | "push" | "pushUp" | "zoom" | "wipe"; // Used when the lesson doesn't set one fontLoading?: "none" | "google"; // Load the lesson's fonts from Google Fonts (default: "none") }

Font loading

Lessons can use custom Google Fonts. The player always applies them. With the default fontLoading: "none", your page loads the font files. Set fontLoading: "google" to have the player load them from Google Fonts. See Lesson Fonts for details.

To replace the footer with your own, use the renderFooter prop. To show your own start screen, pass showStartButton={false}; the lesson then starts as soon as the player mounts.

Playback Modes

The mode prop controls how the player behaves:

  • "player" (default): Normal playback mode. Learners can interact with widgets and their progress is tracked.
  • "review": Read-only mode. Shows previous work with all interactions disabled. Use this when revisiting completed lessons.
<TeachariumPlayer lesson={lessonData} widgets={widgets} mode="review" initialSessionState={savedSessionState} />