App UI kits › Margin › Lesson

Lesson

The transcript follows the lesson line by line; save a line and a pin drops onto the scrubber at that second.

Lesson is a screen from Margin, an app ui kit with 12 screens: An online course app whose transcript follows the lesson line by line and turns any line into a note pinned to that second. Price: $5 for the whole pack.

Built with: synced transcript, notes pinned to time, real video or frames.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Lesson props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosMgPhotos
videostringA real lesson video URL. Its current time drives the transcript.
onNote(n: { t: number; text: string }) => void

Methods on the ref

Use it in React

import MarginLesson from './MarginLesson';

<MarginLesson />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Margin

Good for: E-learning app UI, UK (pounds).