Skip to content

0.5#49

Open
adoyle0 wants to merge 5 commits intomainfrom
0.5
Open

0.5#49
adoyle0 wants to merge 5 commits intomainfrom
0.5

Conversation

@adoyle0
Copy link
Copy Markdown
Owner

@adoyle0 adoyle0 commented Jan 30, 2026

  • Adds align and side props to DropdownMenuContent and PopoverContent for anchor positioning. The anchor is the trigger Button.
    Accepted values for align are "start" | "center" | "end", with "start" being the default.
    Accepted values for side are "top" | "right" | "bottom" | "left", with "bottom" being the default.

  • Adds open and dismissable props to DropdownMenu, ContextMenu, and Popover components.
    open is a reactive signal that controls open/close state of popovers, but is not coupled to the actual open state of the popover.
    dismissable controls whether a popover can be light dismissed (clicking off the popover/trigger, pressing esc, etc.) and can be used in conjunction with open to create a manually controlled popover. This effectively couples the open signal to the open state of the popover but this is not enforced so there may be edge cases where sync is lost.

  • dropdown-menu CSS class changed to dropdown-menu-content

  • Basic popover styling and positioning related CSS is now separate from menu styling CSS to better support custom popover/dropdown/context menu implementation

  • DropdownMenuItem now has a dismiss prop that toggles whether or not clicking the item closes the popover

  • dismiss and dismissable are Reactive and can take signals

  • Added animations for popovers for users who don't prefer reduced motion

  • Updated styling to mimic shadcn

  • Added submenus for dropdown and context menus

  • Added CheckboxItem and RadioItem components for use within popover menus

  • Added PopoverHeader, PopoverTitle, and PopoverDescription to Popover

  • Change all invalid and disabled props to Reactive to allow signals

Closes #44
Mitigates #48

adoyle0 and others added 5 commits January 29, 2026 19:54
… add external/manual popover control, add submenus, add `CheckboxItem` and `RadioItem`, add `PopoverHeader` components (#45)

* refactor: rework popovers

* add reactive `dismiss` prop to popovers and make `dismissable` reactive

* update docs and add inset prop to `DropdownMenuLabel` and `DropdownMenuItem`

* css

* more css

* add submenus for dropdown and context menus

* add more examples

* fix submenu positioning

* add `CheckboxItem` and `RadioItem`

* tweaks and docs

* open submenus on hover

* run clippy

* finish `Popover` stuff, add `PopoverHeader`, `PopoverTitle`, `PopoverDescription`, docs, and examples

* custom class support for popover header/children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trigger a dropdown from outside

1 participant