Skip to content

Add origin-aware animations CSS variable to the popover components based on the placement prop #8119

@sadeghbarati

Description

@sadeghbarati

Provide a general summary of the feature here

Just like the radix-ui, it would be nice to have --radix-popper-transform-origin CSS variable for these component

  • Popover
    • Combobox
    • Menu
    • Select
    • DatePicker/DateRangePicker
  • Tooltip

🤔 Expected Behavior?

Please check this shadcn PR video

shadcn-ui/ui#6945

😯 Current Behavior

Components are doesn't have origin aware animations

💁 Possible Solution

No response

🔦 Context

For context please check the radix-ui popper component

https://github.com/radix-ui/primitives/blob/main/packages/react/popper/src/popper.tsx#L241C11-L244C23

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions