mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-23 04:35:46 +00:00
This PR adds origin-aware animations to the following components: - Context menu - Dropdown menu - Hover card - Menu bar - Popover - Select - Tooltip This is accomplished with the custom property `--radix-<component>-transform-origin`, exposed by Radix on the following components: For more information on this custom property, see the Radix docs; context menu as an example: https://www.radix-ui.com/primitives/docs/components/context-menu#origin-aware-animations You can see a side-by-side comparison in the following video: https://github.com/user-attachments/assets/ad8d548b-eb8d-4818-acb4-73c7cdaecc3f