Package-level declarations
TextLink A TextLink is a reference to a resource.
It can be external (e.g. a different web page) or internal (e.g. a specific element in the current page).
Variants:
TextLink
fun TextLink(
text: Int,
onClickLabel: String,
onClick: () -> Unit,
)
TextLinkButton
fun TextLinkButton(
text: String,
onClick: () -> Unit,
intent: ButtonIntent,
enabled: Boolean = true,
isLoading: Boolean = false,
)
Popover is kinda similar to Plain tooltip from Compose UI Provides a descriptive message or Info for an Anchor. Popover that is invoked when the anchor is pressed/long pressed:
The minimal usage of the component is the content and the anchor.
Popover(
popover = {
Text(
text = "Do you want to have this cookie now?",
)
},
isDismissButtonEnabled = true,
popoverState = popoverState,
) {
ButtonOutlined(
text = "Display Popover",
onClick = { scope.launch { popoverState.show() } },
)
}
The popover can also have intents as it's background color, you can fin the list here.
Functions
Plain tooltip that provides a descriptive message.
Popover is kinda similar to Plain tooltip from Compose UI Provides a descriptive message or Info for an Anchor. Popover that is invoked when the anchor is pressed/long pressed:
Spark TooltipBox that wraps a composable with a tooltip.