What problem does it solve?
Building media player UI components in React requires consistent decisions about state ownership, component boundaries, render customization, and styling contracts. This Skill guides the creation or modification of Video.js React UI components so they follow the framework's established architecture instead of ad-hoc patterns.
Core Features & Use Cases
- Component Contract Design: Classify requests as reusable primitives or app/skin compositions, then define state owners, semantics, APIs, optional parts, and opt-outs.
- Layered Architecture Guidance: Place runtime-neutral state in packages/core, DOM interaction in the DOM layer, and narrow player-state subscriptions in React.
- Compound Parts & Exports: Build compound components with tree-shakeable ESM namespace exports, render escape hatches, and data-attribute/CSS-variable styling hooks.
- Use Case: When asked to create a React chapter-skip control, produce a scoped core contract, composable React adapter, stable styling hooks, deliberate render customization, exports, and focused tests.
Quick Start
Create a new Video.js React UI component for a playback speed control following the framework's component architecture.