What problem does it solve?
Building Video.js v10 UI controls requires coordinating core state contracts, custom element adapters, registration entries, styling hooks, and tests across multiple packages, which is error-prone without a defined workflow.
Core Features & Use Cases
- Component Contract Design: Classifies requests as reusable primitives or app/skin compositions, then defines state owners, semantics, APIs, and styling contracts.
- Layered Implementation: Places runtime-neutral state in packages/core, DOM interaction in packages/core/src/dom/ui, and keeps the custom element a thin adapter using ReactiveElement lifecycle.
- Registration and Testing: Registers elements with safeDefine under packages/html/src/define/ui, updates HTMLElementTagNameMap, and adds focused core and HTML tests.
- Use Case: When asked to create an HTML chapter-skip control, produce a scoped core contract, thin custom element, definition entry, headless styling hooks, cleanup logic, and focused tests.
Quick Start
Ask the assistant to create a new Video.js HTML UI control such as a chapter-skip button following the create-html-component workflow.