An open API service indexing awesome lists of open source software.

https://github.com/knowler/tool-tip-element

A tooltip custom element that works as a label or a description.
https://github.com/knowler/tool-tip-element

custom-element tooltip

Last synced: 11 days ago
JSON representation

A tooltip custom element that works as a label or a description.

Awesome Lists containing this project

README

          

# `` element

_Work-in-progress…_

A custom element that implements a tooltip as a label or a description.

Uses the Popover API for the tooltip and sets up an implicit anchor.

## Usage

As a description…

```html
Instant search

Navigates to search results as you type.
```

As a label (for an icon button)…

```html
+

Increment
```

## Styling

Use `:state(open)` to style the `` element when it’s open. An implicit anchor is set up while the tooltip is open.