Repository navigation
v4.0.0
Major Changes
-
dca14b9: Run every overlay on the in-house primitives and drop the dependencies that duplicated them.
Breaking
- Removed
ShadButtonandshadButtonVariants; useButton. - Removed
useSidenavStore; useuseSidenavState, which returns the sameisCollapsed,setCollapsed,toggleCollapsedandisHydrated. The persisted localStorage value is unchanged. tailwindcssmoved fromdependenciestopeerDependencies.Sheet,DropdownMenu,Accordionand theSelectorfamily no longer take Radix-only props such asforceMount,onOpenAutoFocusoronPointerDownOutside, and no longer emit--radix-*CSS variables. Floating panels expose--anchor-width,--available-widthand--available-heightinstead.
Changes
Sheetis built onModal,DropdownMenuon a newAnchoredPanel(modal by default, like before),Accordionon plain buttons, andSelector,SelectableAutocompleteandMultiSelectableAutocompleteon a non-modalAnchoredPanel. Their exports,data-stateattributes, ARIA roles, keyboard behavior and positioning are unchanged.DropdownMenuSubContentnow renders outside the parent menu, so submenus are no longer clipped by the parent's scroll container.- Floating panels opened inside a
Modalrender into that modal's root, so they always stack above its backdrop. Autocompletevirtualizes option lists longer than 100 items with@tanstack/react-virtual; options carryaria-setsizeandaria-posinset.- Code highlighting uses
highlight.jsdirectly and produces the same HTML as before. - Removed dependencies: all
@radix-ui/*packages,class-variance-authority,copy-to-clipboard(the copy button uses the Clipboard API),zustand,unified,rehype-highlight,rehype-parseandrehype-stringify. Addedhighlight.js.
- Removed