8bitcn components are being rebased from Radix UI onto UI SDK (@ui-sdk/react and @ui-sdk/core). Same file paths, same exported names, same pixel borders. What you gain: components an agent can read and drive, popups that render in place, and change callbacks that tell you who made the change.
This is a minor release. Your call sites keep working: 8bitcn keeps today's props through a compat layer (asChild, onOpenChange(open), the same part names). You only touch your code if you pass Radix-only props, override state styles with data-[state=…] selectors, or want the new features.
react >= 19, react-dom >= 19 and, for TypeScript, @types/react >= 19.2.10. On React 18, install the Radix UI versions until you upgrade.ui-sdk CSS layer. Add one line at the top of your global stylesheet, above Tailwind:It declares the ui-sdk cascade layer first, so your own styles and the 8bit classes always win over UI SDK's few base rules (keeping a closed popup hidden, dimming the page behind a sheet). Where your build can't import CSS from a package, @layer ui-sdk; as the first line does the same.
@import "@ui-sdk/core/layer.css"; above @import "tailwindcss"; yourself. The shadcn CLI prints this reminder after install, but it can't place the line above Tailwind for you.@ui-sdk/react and @ui-sdk/core: pnpm dlx shadcn@latest add @8bitcn/dialog --overwrite.data-[state=…] selectors in your own className overrides (State selectors).overflow: hidden or low z-index parent still shows on top, and that it doesn't inherit text styles from where it sits. The 8-bit popups reset white-space and text-align, so a drawer opened from a whitespace-nowrap table cell still wraps.<Label> or aria-label. Screen readers and agents both find components by it.createAgent().Stuck on one component? Install its Radix UI version and migrate it later.
asChild still works through compat. UI SDK calls it render.onOpenChange(open) still works. UI SDK adds a second argument: onOpenChange(open, details).onCheckedChange, onValueChange and onPressedChange get the same first argument, plus details: details.source is "agent" for an agent's change, and details.cancel() keeps the old value.DialogContent, SelectItem, TabsTrigger, …) stay and map to the UI SDK parts.variant, size, font and every other 8bit prop are unchanged.Only real differences are listed, as old (Radix) → new (UI SDK). Props that 8bitcn keeps through compat are marked "kept".
type="single" | "multiple" → multiple (kept) · onValueChange(value) → (value[], details) (single value kept) · AccordionContent forceMount → keepMounted · --radix-accordion-content-height → --accordion-panel-heightAlertDialogOverlay, AlertDialogPortal (kept; the dialog renders in the top layer, in place) · AlertDialogAction onClick runs before it closes, as before · onEscapeKeyDown and the outside-press handlers → dismissible + onDismissAttemptAvatarFallback delayMs → delay (kept) · AvatarImage onLoadingStatusChange(status) → Avatar onLoadingStatusChange(status, details)BreadcrumbLink renders a UI SDK Button with an <a> · asChild → render (kept)asChild → render (kept) · type still defaults to "submit" like a native button (UI SDK's own Button defaults to "button") · New: focusableWhenDisabled, and an async onClick sets data-pendingtoolbar: one tab stop, arrow keys move between its buttons · orientation and ButtonGroupSeparator orientation (kept) · A Button with asChild stays as it is, outside the arrow keysmode, selected / onSelect with Dates, disabled matchers, captionLayout dropdowns, numberOfMonths, month / onMonthChange, startMonth / endMonth, weekStartsOn, showOutsideDays, fixedWeeks · classNames, components, formatters, locale, range min / max → removed · With two months, a date shows in one grid only (the other leaves it blank) · In range mode, a press after a full range starts a new one, and onSelect runs once both ends are picked · The react-day-picker version is @8bitcn/radix/calendaropts={{ loop, align, dragFree, skipSnaps, startIndex, slidesToScroll, axis, watchDrag }} (kept, mapped to UI SDK; or pass them top-level) · setApi (kept: an embla-like API on UI SDK's controller, snaps count from 0) → prefer controller, or page + onPageChange (pages count from 1) · plugins → removed; for autoplay use defaultPlaying + interval · New: CarouselPlayToggle · Name the carousel with aria-labelChartContainer gains optional data (the rows an agent reads; defaults to the chart's own data) and labelKey (the field that names each point) · ChartTooltip stays open on the point an agent picks with highlight, and follows the pointer as before otherwisechecked (including "indeterminate"), onCheckedChange(checked) (kept; details is extra) · Indicator forceMount → keepMounted · asChild (kept; it never changed the element)forceMount → keepMounted · data-slot="collapsible-content" → collapsible-panel · --radix-collapsible-content-height → --collapsible-panel-heightCombobox, without Command or Popover: an 8-bit button shows the choice, and the popup holds the search field and the list · CommandItem onSelect → root onValueChange(value, details) · Escape or a choice returns focus to the buttonCommandInput value / onValueChange (they control the root's query), shouldFilter={false} (UI SDK's filter={false}), a filter scoring function, CommandItem onSelect(value), CommandGroup heading (rendered as UI SDK's group label), root value / onValueChange / loop, label for the search field · vimBindings, disablePointerSelection, forceMount, CommandSeparator alwaysRender → removed · [cmdk-*] selectors → the parts' data-slot attributesContextMenuPortal (kept, renders in place) · forceMount → keepMounted (kept) · Content avoidCollisions, sticky, hideWhenDetached, loop (set loop on ContextMenu) and dir → removed · Checkbox items without a value use their textDatePicker: an 8-bit button shows the date, and the popup holds the 8-bit calendar (CalendarMonths) · New: label names the picker (default "Launch date") · Agents pick with ISO datesDialogTrigger asChild and DialogClose asChild (kept) · DialogContent draws its own backdrop and close button, as before (8bitcn never exported DialogOverlay or DialogPortal) · onEscapeKeyDown, onPointerDownOutside, onInteractOutside → dismissible, closeOnOutsidePress, onDismissAttempt on Dialog · onOpenAutoFocus / onCloseAutoFocus → initialFocus / finalFocus · forceMount → keepMountedopen, onOpenChange, modal, dismissible and snapPoints as before · direction, activeSnapPoint, setActiveSnapPoint (kept; UI SDK's side, snapPoint, onSnapPointChange) · DrawerPortal (kept, renders in place) · shouldScaleBackground, onDrag, onRelease → removedDropdownMenuPortal (kept, renders in place) · variant="destructive" (kept; UI SDK's destructive) · forceMount → keepMounted (kept) · Content avoidCollisions, sticky, hideWhenDetached, loop (set loop on DropdownMenu) and dir → removed · Checkbox items without a value use their text · Items still close the menu (closeOnSelect={false} keeps it open) · New: DropdownMenuRadioGroup, DropdownMenuRadioItemcurrentHealth, maxHealth, enemyName and the color props (kept; healthBarColor is still not applied) · New onHealthChange(health, details) makes currentHealth controlled, so damage and heals (also an agent's) ask first · New lowThreshold (30 by default) sets data-lowvalue and variant (kept) · New defaultValue, max (100 by default), lowThreshold (30 by default; Health and Mana pulse at or under it) and onValueChange(value, details), which makes value controlled · props is still ignored and now typed object, not Progress propsopenDelay → delay (kept) · forceMount → keepMounted (kept)value, onChange and every native prop (kept; number values too, though UI SDK holds a string) · New: onValueChange(value, details) · asChild (kept; it never changed the element)onChange(value), onComplete(value) and pattern, including REGEXP_ONLY_DIGITS strings (kept; UI SDK calls them onValueChange, onValueCommit and tests the pattern per character) · Agents read the code as [redacted]asChild → render (kept) · ItemSeparator data-slot="item-separator" → separator (UI SDK owns the attribute)asChild → render (kept) · htmlFor now names any UI SDK control, not only native inputsMenubar value, defaultValue, onValueChange and dir, and MenubarMenu value → removed (use each menu's open / onOpenChange; UI SDK reads the page's direction) · Content avoidCollisions, sticky, hideWhenDetached, loop (set loop on Menubar) and dir → removed · forceMount → keepMounted (kept) · Checkbox items without a value use their text"" (kept; UI SDK uses null) · delayDuration → delay (kept) · NavigationMenuLink active → current (kept) · forceMount → keepMounted (kept) · skipDelayDuration, dir and the link's onSelect → removed (use onClick; closeOnSelect keeps the menu open) · --radix-navigation-menu-viewport-* → --viewport-width / --viewport-heightpageCount (or total + pageSize); then it becomes a UI SDK pagination that holds the page: PaginationLink isActive → root page · Per-link href → root getHref(page) · PaginationContent → PaginationList (kept)PopoverAnchor (kept; hands its element to the content's anchor) · sideOffset defaults to 8 (shadcn's was 4) · w-full on PopoverContent still sizes it to its content, as with Radix · forceMount → keepMounted (kept) · Dismiss handlers → dismissible + onDismissAttemptgetValueLabel(value, max) → getValueLabel(value, details)onValueChange(value) (kept; clearing still reports "", UI SDK uses null) · orientation, dir (accepted, ignored: arrow keys move both ways)direction → orientation (kept) · defaultLayout object → number[] in percent · onLayout / onLayoutChanged → onLayoutChange (every frame) or onLayoutCommit (once a drag ends) · groupRef, panelRef → controller · Panel onResize, onCollapse, onExpand → removed · data-[panel-group-direction=vertical]: → data-[orientation=vertical]:label), not a plain buttondir → removed · ScrollBar forceMount → type="always"SelectLabel is still the group heading (kept; UI SDK calls it SelectGroupLabel) · New SelectFieldLabel names the trigger (UI SDK's SelectLabel), or use <Label htmlFor> with an id on SelectTrigger · Empty value "" and onValueChange(value: string) (kept; UI SDK uses null) · position → ignored: the list always opens under the trigger · SelectValue placeholder takes text, not elements · SelectItem textValue → label · --radix-select-trigger-width → --anchor-widthdata-slot="separator-root" → separatorSheetContent side (kept; the drawer takes it on the root) · open, onOpenChange(open), modal as before · SheetContent draws its own backdrop, as before · Dismiss handlers → dismissible + onDismissAttemptvalue / defaultValue as [n] and onValueChange / onValueCommit in the shape you passed (kept; UI SDK takes n for one thumb) · <Label htmlFor> with an id still names the thumb (kept) · inverted, dir → removed · Thumb focus-visible: → has-[:focus-visible]:onCheckedChange(checked) → (checked, details) (kept) · <Label htmlFor> with an id names it (kept)setValue("Past Performance")), even while the tab strip is hidden · activationMode="manual" → activation="manual" · forceMount → keepMounted · data-slot tabs-trigger / tabs-content → tabs-tab / tabs-panelvalue, onChange and every native prop (kept) · New: onValueChange(value, details), autoResize · asChild (kept; it never changed the element)toast() mounts its own region the first time it runs · toast(title, options?) returns the id; options take type and duration (4000 ms by default) · New: toast.dismiss(id?) closes one toast, or every toast without an id · To move the stack, render the exported Toaster with side and align (Sonner's position="bottom-right" → side="bottom" align="end", the default) · richColors, theme, closeButton → removedonPressedChange(pressed) (kept; details is extra) · asChild → render (kept)type="single" → UI SDK segmented control: the chosen item can't be unpressed · onValueChange keeps its shapes (a string, "" for none; a list for multiple) · rovingFocus, dir (accepted, ignored)TooltipProvider (kept, optional: it passes delayDuration down) · delayDuration → delay (kept) · skipDelayDuration, disableHoverableContent → removedBadge, Card, Alert, Skeleton, Kbd, Spinner, Empty, Item and Table are static markup: no changes.
Blocks keep their props. These are new and optional:
onSelect(item) runs with the entry's value on every press (and on an agent's setValue)onPhaseChange(phase) ("transition", then "arrived") next to onEnter · New portalLabel names the portal button (default "Fast travel")onSlotLoad, onSlotDelete and onSlotSave show LOAD, DELETE and SAVE buttons on the slots (LOAD falls back to onSlotClick) · The selected slot sets aria-pressedaria-pressed; onChange also runs when the selected difficulty is pressed againplayers, so your array keeps its orderhref now makes its button a link (it was ignored before) · Team 3's buttons are named "cta title", such as "READ MORE PixelForge Studio"aria-pressedonLogin(email) (typed by the exported LoginFormProps) · Field ids come from useId, so two forms on a page don't clash · Social sign-in buttons are type="button", so they no longer submit the formAppSidebar is unchanged · New exports SidebarNav, SidebarNavTrigger and SidebarNavItem make the navigation agent-drivablesortable-rows primitive's move(row, position) (1 is the top); dnd-kit drags end in the same onOrderChange · Toasts use the 8-bit toast, not SonnerUI SDK sets plain data attributes instead of Radix's data-state. Update the selectors in your own className overrides; the 8bit classes are already updated.
Every rebased component also installs its Radix UI version: put radix/ in front of its name. It installs the Radix-era file at the same path, so imports don't change:
@8bitcn registry as every other item. The shadcn CLI fetches https://8bitcn.com/r/radix/dialog.json.@8bitcn/dialog, without radix/, installs the UI SDK version. Switch back when you're ready with pnpm dlx shadcn@latest add @8bitcn/dialog --overwrite.base-nova) as well as in Radix styles (radix-*, new-york). The Radix UI version brings its own copy of the Radix shadcn parts it wraps (shadcn's new-york-v4 dialog, button, …) in components/ui/8bit/radix/, so it never touches your components/ui/*.tsx.lib/utils by relative paths, so @/, ~/ or any other alias works, with or without src/. Keep lib/utils.ts where shadcn init puts it.Toaster from sonner in your layout), Calendar uses react-day-picker.@8bitcn/legacy-<name> still installs the same item, so commands you already shared keep working.Each component's docs page has a UI SDK | Radix UI switch on its install command. It remembers your pick across pages.
The Radix UI versions stay for one release cycle and are removed in the release after next, so plan the move.