Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore(docs): additional Tooltip Hook documentation
- Loading branch information
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
packages/documentation/src/components/Demos/Tooltip/TooltipHookExample.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
Starting with `react-md@2.8.0`, the `@react-md/tooltip` package exports the | ||
`useTooltip` hook which allows you to implement custom tooltip behavior. | ||
`useTooltip` hook which allows you to implement custom tooltip behavior. The | ||
example below will show the most common use case for this hook. | ||
|
||
You can also check out the | ||
[TooltipHookOptions]({{GITHUB_FILE_URL}}/packages/tooltip/src/useTooltip.ts#L206) | ||
and | ||
[TooltipHookReturnValue]({{GITHUB_FILE_URL}}/packages/tooltip/src/useTooltip.ts#L252) | ||
for additional documentation. |