App UI kits › Margin › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | MgPhotos | ||
video | string | A real lesson video URL. Its current time drives the transcript. | |
onNote | (n: { t: number; text: string }) => void |
play(on?: boolean): voidseek(t: number): voidnote(line?: number): voiddestroy(): voidimport MarginLesson from './MarginLesson';
<MarginLesson />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: E-learning app UI, UK (pounds).