Losing your Components’ Head
summary
Claim: separate behavior from rendering so UI adapts without refactoring. Shows a working React demo that implements a tabs system with a context controller and small pieces — Tabs, TabList, TabPanel — using accessibility roles, hiHidden, onSelected change and orientation-aware flex layout. Notes real libraries that follow the pattern and were used or cited: Headless UI, Radix, MUI base, Quick UI. Demonstration finishes in about 15 minutes and the composed component works as described.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:12Separation of concerns
- 5:50Headless components explained
- 7:19Tabs component breakdown
- 9:15Tabs structure
- 11:22Behavior with context
- 13:55Adaptive UI composition
- 15:20When to use headless
related talks
20mLosing your Components’ Head
18mOff with Their Heads: Rise of the Headless Components
35mBuilding reusable UI libraries with React
25mSimply React
30mComposable components using React Context
40mBuilding Accessible Reusable Components
23mBest Practices for reusable UI components
52mA11y with React Components
