← Back to Material 3 Compose
PlainTooltipBox
Component
in
Material 3
. Since 1.1.0Overview
Examples
Community Notes
Plain tooltip that provides a descriptive message for an anchor.
Tooltip that is invoked when the anchor is long pressed:
Overloads
PlainTooltipBox
@Composable
@ExperimentalMaterial3Api
fun PlainTooltipBox(
tooltip: @Composable () -> Unit,
modifier: Modifier = Modifier,
tooltipState: PlainTooltipState = rememberPlainTooltipState(),
shape: Shape = TooltipDefaults.plainTooltipContainerShape,
containerColor: Color = TooltipDefaults.plainTooltipContainerColor,
contentColor: Color = TooltipDefaults.plainTooltipContentColor,
content: @Composable TooltipBoxScope.() -> Unit
)
Parameters
Name | Description |
---|---|
tooltip | the composable that will be used to populate the tooltip's content. |
modifier | the Modifier to be applied to the tooltip. |
tooltipState | handles the state of the tooltip's visibility. |
shape | the Shape that should be applied to the tooltip container. |
containerColor | Color that will be applied to the tooltip's container. |
contentColor | Color that will be applied to the tooltip's content. |
content | the composable that the tooltip will anchor to |
Previous Component← PlainTooltip
Next ComponentPrimaryScrollableTabRow →