IconButtonWithPopover
Icon button with Popover (Tab tip Popover)
Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
Icon buttons allow users to take actions, and make choices, with a single tap. Icon buttons can take the form of a primary, secondary, tertiary, or ghost variant but most commonly will be styled as primary or ghost buttons.
This variant of the icon button is wrapped by and displays a Popover when the user click on it. The popover is of the "tab tip" variant.
⚠️ Placement limitations
Due to limitations from Compose, the Popover may be misplaced or misaligned if the current UI window is not big enough to fit it. This is especially the case for hand-held devices. Please keep this in mind when using this component.
From Button documentation, Popover documentation
Parameters
Icon painter to be displayed in the button.
Whether the popover is visible or not.
The alignment of the popover relative to this icon button.
Callback invoked when the button is clicked.
The modifier to be applied to the button.
Minimum width of the displayed popover.
Maximum width of the displayed popover.
PopupProperties for further customization of the underlying popup's behavior.
A ButtonType that defines the button's type.
A ButtonSize that defines the button's size.
Whether the button is enabled or disabled.
The MutableInteractionSource that keeps track of the button's state.
Executes when the user clicks outside of the popup.
The content to be displayed inside the popup.