open | boolean | false | Open state, kept in sync with the native popover (setting it shows or hides the popover). |
placement | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | bottom-start | Preferred placement (floating-ui names). The one in use is reflected as current-placement. |
offset | number | undefined | undefined | Distance in pixels from the anchor along the placement direction. Falls back to --c2-overlay--offset-y. |
cross-offset | number | undefined | undefined | Shift in pixels perpendicular to the placement direction. Falls back to --c2-overlay--offset-x. |
disabled-cross-axis | boolean | false | Do not flip across the cross axis when there is no room (only along the main axis). |
fit-anchor | boolean | false | Make the overlay exactly as wide as the anchor. |
free-width | boolean | false | By default the overlay is at least as wide as its anchor; set this to size it by its content only. |
anchor | string | HTMLElement | undefined | undefined | Anchor element, or (attribute) the id of the anchor. Falls back to the element whose popovertarget is this overlay's id. |