androidx.compose.material3
TooltipDefaults
Object
No hand-written docs yet.
Tooltip defaults that contain default values for both PlainTooltip and RichTooltip
object TooltipDefaults
Properties
plainTooltipContainerShape
@Composable val plainTooltipContainerShape: Shape
The default Shape for a PlainTooltip's container.
plainTooltipContainerColor
@Composable val plainTooltipContainerColor: Color
The default Color for a PlainTooltip's container.
plainTooltipContentColor
@Composable val plainTooltipContentColor: Color
The default Color for the content within the PlainTooltip.
richTooltipContainerShape
@Composable val richTooltipContainerShape: Shape
The default Shape for a RichTooltip's container.
caretSize
val caretSize: DpSize
The default DpSize for tooltip carets.
plainTooltipMaxWidthSince 1.9
val plainTooltipMaxWidth: Dp
The default maximum width for plain tooltips.
richTooltipMaxWidthSince 1.9
val richTooltipMaxWidth: Dp
The default maximum width for rich tooltips.
Functions
caretShapeSince 1.9
fun caretShape(): DefaultTooltipCaretShape
The default caret shape used for tooltips and is caretSize dimensions.
fun caretShape(
caretSize: DpSize = TooltipDefaults.caretSize,
): Shape
The caret shape used for tooltips.
richTooltipColors
@Composable
fun richTooltipColors(): RichTooltipColors
Method to create a RichTooltipColors for RichTooltip using RichTooltipTokens to obtain the default colors.
@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.
rememberTooltipPositionProviderSince 1.9
@Composable
fun rememberTooltipPositionProvider(
positioning: TooltipAnchorPosition,
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.
Library docs
Tooltip defaults that contain default values for both PlainTooltip and RichTooltip