v0.2.2
v0.2.2 — Release Summary
A small release that adds a new DropdownMenu package and re-exports it from the core package for easier consumption.
@data-slot/dropdown-menu
- ✨ New package: adds a full-featured DropdownMenu controller (createDropdownMenu) and accompanying types.
- Key user-facing options: DropdownMenuOptions supports open state callbacks (onOpenChange, onSelect), close behavior (closeOnClickOutside, closeOnEscape, closeOnSelect), and Radix-compatible positioning props (side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding).
- Designed to work with the data-slot core primitives and events; built to integrate with existing parts/controllers.
Import example:
- import { createDropdownMenu } from "@data-slot/dropdown-menu";
@data-slot/data-slot
- ✨ Re-exports: createDropdownMenu and its types (DropdownMenuOptions, DropdownMenuController) are now exported from the umbrella @data-slot/data-slot package for convenience.
- No other runtime or API changes in this package.
Breaking changes
- ✅ None.
Thanks for using @data-slot — please report any issues or feature requests on the repo.