TooltipDefaults


Tooltip defaults that contain default values for both PlainTooltip and RichTooltip

Summary

Public functions

PopupPositionProvider
@Composable
rememberTooltipPositionProvider(spacingBetweenTooltipAndAnchor: Dp)

PopupPositionProvider that should be used with either RichTooltip or PlainTooltip.

Cmn
RichTooltipColors

Method to create a RichTooltipColors for RichTooltip using RichTooltipTokens to obtain the default colors.

Cmn
RichTooltipColors
@Composable
richTooltipColors(
    containerColor: Color,
    contentColor: Color,
    titleContentColor: Color,
    actionContentColor: Color
)

Method to create a RichTooltipColors for RichTooltip using RichTooltipTokens to obtain the default colors.

Cmn

Public properties

DpSize

The default DpSize for tooltip carets.

Cmn
Color

The default Color for a PlainTooltip's container.

Cmn
Shape

The default Shape for a PlainTooltip's container.

Cmn
Color

The default Color for the content within the PlainTooltip.

Cmn
Dp

The default maximum width for plain tooltips.

Cmn
Shape

The default Shape for a RichTooltip's container.

Cmn
Dp

The default maximum width for rich tooltips.

Cmn

Public functions

rememberTooltipPositionProvider

@Composable
fun rememberTooltipPositionProvider(
    spacingBetweenTooltipAndAnchor: Dp = SpacingBetweenTooltipAndAnchor
): PopupPositionProvider

PopupPositionProvider that should be used with either RichTooltip or PlainTooltip. It correctly positions the tooltip in respect to the anchor content.

Parameters
spacingBetweenTooltipAndAnchor: Dp = SpacingBetweenTooltipAndAnchor

the spacing between the tooltip and the anchor content.

richTooltipColors

@Composable
fun richTooltipColors(): RichTooltipColors

Method to create a RichTooltipColors for RichTooltip using RichTooltipTokens to obtain the default colors.

richTooltipColors

@Composable
fun richTooltipColors(
    containerColor: Color = Color.Unspecified,
    contentColor: Color = Color.Unspecified,
    titleContentColor: Color = Color.Unspecified,
    actionContentColor: Color = Color.Unspecified
): RichTooltipColors

Method to create a RichTooltipColors for RichTooltip using RichTooltipTokens to obtain the default colors.

Public properties

caretSize

val caretSizeDpSize

The default DpSize for tooltip carets.

plainTooltipContainerColor

val plainTooltipContainerColorColor

The default Color for a PlainTooltip's container.

plainTooltipContainerShape

val plainTooltipContainerShapeShape

The default Shape for a PlainTooltip's container.

plainTooltipContentColor

val plainTooltipContentColorColor

The default Color for the content within the PlainTooltip.

plainTooltipMaxWidth

val plainTooltipMaxWidthDp

The default maximum width for plain tooltips.

richTooltipContainerShape

val richTooltipContainerShapeShape

The default Shape for a RichTooltip's container.

richTooltipMaxWidth

val richTooltipMaxWidthDp

The default maximum width for rich tooltips.