Repository navigation
Ark UI v6 #3997
Pinned
Adebesin-Cell
announced in
Announcements
Ark UI v6
#3997
Replies: 3 comments 11 replies
|
Would love if this coincided with Solid 2.0 and included support. |
7 replies
|
Hey, I know it's unpopular to ask about timelines, but do you see a timeline when this potentially becomes stable? Background: I am working on a company design system that is based on ark-ui and our system currently is in pre-release mode as well. My plan was to include the v6 release before shipping it now and then introduce breaking changes again with ark ui v6. However if the timeline would be like weeks / months. I would postpone the update to Ark UI. BTW: I have done the update already for testing and I like all of the new changes, keep up the good work! |
3 replies
|
Solid 2.0 is also stable now, I guess zag 2.0 is the main blocker now? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Ark UI v6
v6 is about composition.
asChildgives way to arenderprop, and the DOM dropsdata-scope/data-partfor one attribute per part. Underneath, everything moves to zag v2.This is the plan. It's a checklist, and it's open — tell us what you'd change.
What's done
2.0.0-next.3.@ark-ui/[framework]/anatomy, alongside the per-component entry points.aria-controlsandaria-labelledbystill work (#3616).Composition: the render prop
rendertakes an element or a function, merges props, composes refsrendertakes a component or a functionrenderslot, written#renderon the partrendersnippetstatefrom every part into the factory element, sorender(props, state)has a state source.:state, plus theRootStatetypes to go with themasChildin favour ofrender. Decided:asChildstays. It's marked@deprecatedso new code reaches forrender, but it isn't being removed.@deprecatedin the factory, kept working;asChildandrendertogether throw in dev, pointing atrender.render(#4036). Thepopoveras-childdemos stay on purpose — they document the deprecated prop.@ark-ui/codemodwith anas-child-to-rendertransform per framework, ark-component scoping, and--cross-filebarrel resolution.Chakra v4 is waiting on the
rendermigration path (chakra-ui#10959).asChildkeeps working there too.zag v2 migration
axisis gone, so is theResizeTriggerAxisexport (64)position→placement(14)slideCountandpaddingare no longer props (12)loading→isLoading,filterText→filter,setFilterText→setFilter,sortDescriptordropped (~18)count, tree-view's removedgetBranchContentProps, and the restSelect.alignItemWithTrigger, which the other three already haveVirtualizer
Built on
@zag-js/virtualizer, which zag wrote rather than wrapped — no TanStack in Ark any more.useListVirtualizer,useGridVirtualizer,useWindowVirtualizerin all four frameworksListVirtualizer,GridVirtualizer,WindowVirtualizerparts, withmeasureonItemandRowrenderpropBindDecided: not in v6. It can come in a later minor.WaterfallVirtualizer.aria-posinset/aria-setsize, the composed Select and Combobox paths,scrollToIndexFn, horizontal, or RTL.patchedDependenciesonce they land upstream:flexShrink: 0on the content spacer, and the empty-checkedValueguard intree-view'sgetCheckedState. Everything else those patches carry is already on zag'sv2.Indicator
Decided: use
render. Every part now forwards its own state throughrenderin all four frameworks, so an indicator's checked or selected state is already reachable from its Item, Node or Root part. No separate indicator state to design.Settle the state shape per component family.Not needed — the parent part's state covers it.Migrate the remaining indicator parts.Dropped with the above.Not shipping one — theuseRenderhook.renderprop covers it.Data attributes
data-scope="popover" data-part="trigger"is nowdata-popover-trigger. It comes from zag's anatomy, not from a wrapper in Ark.SegmentGroup.rename()never reached the emitted attrs, so it keeps the machine'sdata-radio-group-*parts and the unused local parts export is gone. SegmentGroup and RadioGroup on the same page still share attributes — accepted for now.data-part.Presencenow emitsdata-presence-root, and the SvelteMenu.Separator/Menu.Triggerparts drop the hardcoded attrs for the ones zag emits (#4035).JsonTreeView, the last Ark-authored part still hardcodingdata-scope/data-partin all four frameworks.SegmentGroupchange.Tests
Six causes, all of them zag v2 behaviour the assertions never caught up with.
toc— 12 (React 6, Svelte 6). Olddata-partselectors.toggle-group— 3 (React, Solid, Vue).toBeChecked()on a part with no checkbox role.field-item— 3 (Svelte). HTML structure and focus targeting.dialog— 2 (React). Controlled open andonOpenChangetiming.hotkeys— 7 (React 3, Solid 2, Vue 1, Svelte 1). Fixed by2.0.0-next.2, now on the branch and green.color-picker— 1 (Vue). The swatch rendered hex because Vue casts an absent boolean prop tofalse, so zag'srespectAlpha = truedefault never applied. Fixed in #4020 (merged) along with 15 other parts with the same gap.Upstream: zag
We fix these at the source, not with a wrapper in Ark.
2.0.0-next.2.@zag-js/hotkeys: restorenormalizeHotkey, re-exportPlatformfrom the index. Both shims are gone from Ark.@zag-js/presence: portonEnterComplete.anatomy.rename()reaching emitted data attributes. Closed —SegmentGroupkeeps the radio-group parts instead.@zag-js/select:translationsis listed inPropsWithDefaultbutprops()no longer returns it, soannounceHighlightedItemreadsitemAnnouncementoffundefinedand the component throws on highlight. New innext.2.popoverandtoastdropped the same default but only read it inconnect, so they survive.Docs
The preview deployment is green again.
countand image-cropper's removedhandlesexport.Select.alignItemWithTriggerin all four frameworks.Release
next, matching zag, so packages version as6.0.0-next.x.v6(#4016).6.0.0-next.0(#4092).latestfor v5 users.Still open
Components zag v2 added that Ark doesn't have yet:
meter,gridlist,number-flow,infinite-scroll,cascade-select,scheduler. Can come in minors.Solid 2.0. Parked for now.
What
renderis in a Vue SFC and a Svelte snippet. A scoped slot and a snippet.Whether the new data attributes ship alongside the old for a window, or as a clean break. A clean break: the upgrade guide covers it and the
css/data-attributescodemod rewrites stylesheets.Who owns the indicator state shapes.Not needed — see Indicator.All reactions