mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Update README.md
This commit is contained in:
@@ -174,8 +174,9 @@ fun TextBox(text: String = "Item") {
|
|||||||
|
|
||||||
## Tooltips
|
## Tooltips
|
||||||
|
|
||||||
You can add tooltip to any components using `BoxWithTooltip`. Basically `BoxWithTooltip` is a `Box` with the ability to show a tooltip, and has the same arguments and behavior as `Box`.
|
You can add tooltip to any components using `TooltipArea`. `TooltipArea` is similar to a `Box`, but with the ability to show a tooltip.
|
||||||
The main arguments of the `BoxWithTooltip` function:
|
|
||||||
|
The main arguments of the `TooltipArea` function:
|
||||||
- tooltip - composable content representing tooltip
|
- tooltip - composable content representing tooltip
|
||||||
- tooltipPlacement - describes how to place tooltip. You can specify an anchor (the mouse cursor or the component), an offset and an alignment
|
- tooltipPlacement - describes how to place tooltip. You can specify an anchor (the mouse cursor or the component), an offset and an alignment
|
||||||
- delay - time delay in milliseconds after which the tooltip will be shown (default is 500 ms)
|
- delay - time delay in milliseconds after which the tooltip will be shown (default is 500 ms)
|
||||||
|
|||||||
Reference in New Issue
Block a user