web-ui-base-ui
Installation
SKILL.md
Base UI Primitives
Quick Guide: Base UI is an unstyled React primitive library. Components are assembled from named parts (
Root,Trigger,Portal,Positioner,Popup,Arrow), polymorphism goes through therenderprop rather thanasChild, state is published as data attributes and as an argument toclassName/stylefunctions, and every change handler receives aneventDetailswhosecancel()vetoes the change. Current: v1.7.0 — package@base-ui/react, imported per component subpath.
Detailed Resources:
- examples/core.md — part anatomy, portal containers, menus, positioning and collision handling
- examples/composition.md — both
renderforms, ref merging,useRender,mergePropsprecedence - examples/styling.md — attribute selectors, state functions, CSS variables, all four animation routes
- examples/state.md — controlled vs uncontrolled,
eventDetailscancelation,actionsRef - examples/forms.md — Field anatomy, validation modes, server errors, Fieldset, external runtimes
- reference.md — data-attribute and prop tables, checklists, Radix migration notes, version history
<critical_requirements>