PlainTooltipAndroid

Composable Component

Plain tooltip that provides a descriptive message.

Android

Deprecated Maintained for binary compatibility. Use overload with maxWidth parameter.

@Composable
@ExperimentalMaterial3Api
fun TooltipScope.PlainTooltipAndroid(
    modifier: Modifier = Modifier,
    caretSize: DpSize = DpSize.Unspecified,
    shape: Shape = TooltipDefaults.plainTooltipContainerShape,
    contentColor: Color = TooltipDefaults.plainTooltipContentColor,
    containerColor: Color = TooltipDefaults.plainTooltipContainerColor,
    tonalElevation: Dp = 0.dp,
    shadowElevation: Dp = 0.dp,
    content: @Composable () -> Unit,
) =
    PlainTooltip(
        modifier = modifier,
        caretSize = caretSize,
        maxWidth = TooltipDefaults.plainTooltipMaxWidth,
        shape = shape,
        contentColor = contentColor,
        containerColor = containerColor,
        tonalElevation = tonalElevation,
        shadowElevation = shadowElevation,
        content = content,
    )

Parameters

modifierthe Modifier to be applied to the tooltip.
caretSizeDpSize for the caret of the tooltip, if a default caret is desired with a specific dimension. Please see TooltipDefaults.caretSize to see the default dimensions. Pass in Dp.Unspecified for this parameter if no caret is desired.
shapethe Shape that should be applied to the tooltip container.
contentColorColor that will be applied to the tooltip's content.
containerColorColor that will be applied to the tooltip's container.
tonalElevationthe tonal elevation of the tooltip.
shadowElevationthe shadow elevation of the tooltip.
contentthe composable that will be used to populate the tooltip's content.
Android

Deprecated Maintained for binary compatibility.

@Composable
@ExperimentalMaterial3Api
fun TooltipScope.PlainTooltipAndroid(
    modifier: Modifier = Modifier,
    caretSize: DpSize = DpSize.Unspecified,
    maxWidth: Dp = TooltipDefaults.plainTooltipMaxWidth,
    shape: Shape = TooltipDefaults.plainTooltipContainerShape,
    contentColor: Color = TooltipDefaults.plainTooltipContentColor,
    containerColor: Color = TooltipDefaults.plainTooltipContainerColor,
    tonalElevation: Dp = 0.dp,
    shadowElevation: Dp = 0.dp,
    content: @Composable () -> Unit,
)

Parameters

modifierthe Modifier to be applied to the tooltip.
caretSizeDpSize for the caret of the tooltip, if a default caret is desired with a specific dimension. Please see TooltipDefaults.caretSize to see the default dimensions. Pass in Dp.Unspecified for this parameter if no caret is desired.
maxWidththe maximum width for the plain tooltip
shapethe Shape that should be applied to the tooltip container.
contentColorColor that will be applied to the tooltip's content.
containerColorColor that will be applied to the tooltip's container.
tonalElevationthe tonal elevation of the tooltip.
shadowElevationthe shadow elevation of the tooltip.
contentthe composable that will be used to populate the tooltip's content.