Popover

fun Popover(popover: @Composable () -> Unit, modifier: Modifier = Modifier, intent: PopoverIntent = PopoverIntent.Surface, isDismissButtonEnabled: Boolean = false, popoverState: TooltipState = rememberTooltipState(isPersistent = true), focusable: Boolean = true, enableUserInput: Boolean = true, content: @Composable () -> Unit)

Popover is kinda similar to Plain tooltip from Compose UI Provides a descriptive message or Info for an Anchor. Popover that is invoked when the anchor is pressed/long pressed:

Params:

Parameters

popover

the composable that will be used to populate the Popover's content.

isDismissButtonEnabled

Boolean that determines if we show a dismiss iconbutton on the Popover,

popoverState

handles the state of the Popover's visibility.

focusable

Boolean that determines if the tooltip is focusable. When true, the tooltip will consume touch events while it's shown and will have accessibility focus move to the first element of the component. When false, the tooltip won't consume touch events while it's shown but assistive-tech users will need to swipe or drag to get to the first element of the component.

enableUserInput

Boolean which determines if this TooltipBox will handle long press and mouse hover to trigger the tooltip through the state provided.

content

the composable that the Popover will anchor to.