AdvancedPopover

@Composable
fun AdvancedPopover(target: ElementTarget, modifier: Modifier = Modifier, hiddenModifier: Modifier = Modifier, variant: CssStyleVariant<PopupKind>? = null, showDelayMs: Int = 0, hideDelayMs: Int = 0, openCloseStrategy: OpenClosePopupStrategy? = null, placementTarget: ElementTarget? = null, placementStrategy: PopupPlacementStrategy? = null, keepOpenStrategy: KeepPopupOpenStrategy? = null, ref: ElementRefScope<HTMLElement>? = null, content: @Composable PopupScope.() -> Unit)(source)

A more generally configurable version of Popover, with more control at the cost of more verbosity.

Please see the header docs for the other Popover method. Only new parameters will be documented here.

Parameters

hiddenModifier

An additional modifier to apply when the popup is in its hidden state. You can use this to create contrasting animations between when the popup is hidden and visible, e.g. by adding a scaling or panning effect. Note that popups will always have their opacity set to 0 when hidden, so you don't need to specify that.

openCloseStrategy

A strategy to control when the popup should open and close. If not specified, the popup will open when the user either hovers over or sets focus to the target element.

placementStrategy

A strategy to control the popup's final placement and position. If not specified, the popup will use a default strategy that places the popover below the target element.