Reusable Components: Contracts, Composition, and Web Components
Build an initial Campus library with typed components, accessible states, documentation, and tests.
- Level
- Intermediate
- Lessons
- 5
- Learning steps
- 68
Your lesson journey
Each lesson has a purpose. Follow the order or revisit an idea you want to practise.
5 of 5 lessons shown
The numbers show the lesson order, not your progress.
What you will learn
Evaluate which interface patterns justify a reusable abstraction. Design configuration, variants, and callbacks with TypeScript contracts. Compose components and manage each instance’s events and resources. Create a basic Custom Element and explain the limits of templates, Shadow DOM, and slots. Document and test accessible components in a gallery and in the application.
Before you start
Complete Web Accessibility or have equivalent knowledge. Be comfortable with HTML, CSS, TypeScript, the DOM, ES Modules, Vite, and Vitest. Exercises run in a development project with a modern browser.
About this course
Read the full description
The fourth Frontend Specialization course starts with the accessible Campus to identify which UI elements benefit from reuse. With Codi, design contracts, compose nodes, and control variants and events. Explore templates, Custom Elements, Shadow DOM, and slots through gradual examples. The final project integrates components into the catalog and adds a documented gallery.