Module Accordion

2
Typography systems3 lessons
Choosing a type scale9:12
Vertical rhythm in the wild14:30
Pairing display with body11:05
About this piece

Module Accordion

Collapsible course module header that reveals a timed lesson list underneath when expanded.

Usage

The import and the props worth knowing about, in one place.

import { Education5 } from "@/components/beste/piece/education5";

<Education5
  moduleIndex={2}
  moduleTitle="Typography systems"
  lessons={[
    {
      "title": "Choosing a type scale",
      "duration": "9:12"
    },
    {
      "title": "Vertical rhythm in the wild",
      "duration": "14:30"
    },
    {
      "title": "Pairing display with body",
      "duration": "11:05"
    }
  ]}
  expanded={true}
  bordered={false}
/>

More Education pieces

View all Education
Memoizing expensive renders7 min left
24 lessons
Design systems for shipping teams
Hania Rani
Foundations
Patterns & hooks
Performance tuning
Shipping at scale
Lesson 6
useEffect runs after the DOM commit, not during render.Cleanup runs before the next effect, and on unmount.
Ask Priya about the stale-closure example in office hours.
Composing tokens with Tailwind18 min
Spanish vocab12 due today
resolverReview
compartirLearning
bienvenidaMastered