Kian Bazza
5085e48241
feat(components): add origin-aware animations ( #6945 )
...
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
2025-03-17 11:04:00 +00:00
Valentin Gavran
a106fc5412
fix(dropdown-menu): make dropdown scrollable if height is limited ( #6679 )
...
* fix(dropdown-menu): make dropdown content scrollable if height is limited
Dropdown menu content now becomes scrollable when the browser window height is too small to display the full menu. This improves usability on smaller screens.
Radix also supports the same behavior with other components. I will also submit a PR for the other components separately.
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 16:51:46 +04:00
shadcn
254198b4bf
feat: add shadcn/registry ( #6339 )
...
* feat: implement shadcn/registry
* feat: add schema field
* fix: import
* chore: add changeset
* chore: remove console
* fix: tests
* fix: diff command
* feat: move to schema/registy-item.json
* fix
* ci: switch to node 20
* ci: build packages
2025-01-14 10:50:19 +04:00
shadcn
f0cff7e0eb
fix: gaps in command and dropdown-menu ( #5570 )
...
* fix: gaps in command and dropdown-menu
* chore: update snapshots
2024-10-25 18:13:13 +04:00
shadcn
d0eece06d4
fix: update registry ( #5530 )
2024-10-23 17:35:26 +04:00
shadcn
303d65718c
chore: registry updates
2024-10-16 23:58:44 +04:00
shadcn
1e9434e6f9
chore: build registry
2024-10-15 12:38:45 +04:00
shadcn
dc8853c8df
chore: rebuild registry
2024-08-30 23:50:06 +04:00