-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
26 deletions.
There are no files selected for viewing
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
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,15 +1,4 @@ | ||
# <vcf-tooltip> | ||
## Usage | ||
<vcf-tooltip> is a Web Component providing an easy way to display tooltips on any html element. | ||
|
||
[<vcf-tooltip>](https://vaadin.com/directory/component/vaadinvcf-tooltip) is a Web Component providing an easy way to display tooltips on any html element. | ||
|
||
[<img src="https://raw.githubusercontent.com/vaadin/vcf-tooltip/master/screenshot.png" width="200" alt="Screenshot of vcf-tooltip">](https://vaadin.com/directory/component/vaadinvcf-tooltip) | ||
|
||
## Example Usage | ||
|
||
```html | ||
<vcf-tooltip for="element-id" position="top"> | ||
A short text describing the element. | ||
</vcf-tooltip> | ||
``` | ||
|
||
[Live Demo ↗](https://incubator.app.fi/vcf-tooltip-demo/) | ||
Add <vcf-tooltip> element with attribute `for` which will contain id of target element, to the page. Now after hovering on target element, toltip will be displayed. |