Uh oh!
There was an error while loading. Please reload this page.
feat(headless): add cssVars middleware and Tooltip primitive - #8477
feat(headless): add cssVars middleware and Tooltip primitive#8477alexcarpenter wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
e4450bd to
a351712Compare2316ca7 to
144f752Compare144f752 to
8c0b810Comparea351712 to
4b71a5cCompare4b71a5c to
b65db13Compare8c0b810 to
6a80c95Compare6a80c95 to
c190d6fComparec190d6f to
db49302Comparedb49302 to
a01dab9Compare25cf99e to
758b949Comparea01dab9 to
64c21e3Compare758b949 to
2afb61fCompareIntroduces the @clerk/headless package — a zero-style React component library providing accessible headless UI primitives. This first PR establishes the core infrastructure and patterns: - Package scaffold: Vite build, Vitest browser tests (Chromium), TypeScript config - Core utils: renderElement (polymorphic rendering with render prop support), mergeProps (event handler chaining, style/className merging) - Hooks: useControllableState, useTransitionStatus, useAnimationsFinished, useTransition - First primitive: Dialog (modal with focus trapping, scroll lock, portal support) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Introduces the @clerk/headless package — a zero-style React component library providing accessible headless UI primitives. This first PR establishes the core infrastructure and patterns: - Package scaffold: Vite build, Vitest browser tests (Chromium), TypeScript config - Core utils: renderElement (polymorphic rendering with render prop support), mergeProps (event handler chaining, style/className merging) - Hooks: useControllableState, useTransitionStatus, useAnimationsFinished, useTransition - First primitive: Dialog (modal with focus trapping, scroll lock, portal support) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Introduces the @clerk/headless package — a zero-style React component library providing accessible headless UI primitives. This first PR establishes the core infrastructure and patterns: - Package scaffold: Vite build, Vitest browser tests (Chromium), TypeScript config - Core utils: renderElement (polymorphic rendering with render prop support), mergeProps (event handler chaining, style/className merging) - Hooks: useControllableState, useTransitionStatus, useAnimationsFinished, useTransition - First primitive: Dialog (modal with focus trapping, scroll lock, portal support) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
64c21e3 to
da71e49Compare2afb61f to
8ed36d3Comparealexcarpenter
commented
Jun 9, 2026
Superseded by #8790, which consolidates the remaining headless primitive stack (Tabs → Collapsible) into a single PR for one review pass. Closing in favor of that. |
Summary
cssVarsFloating UI middleware exposing--cl-anchor-width,--cl-available-height,--cl-transform-originas CSS custom propertiesFloatingDelayGroupsupportReview Stack
Test plan
pnpm buildsucceedspnpm testpasses (+26 tooltip, +14 cssVars tests)🤖 Generated with Claude Code