Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/filipelinhares/fooltips

💬 Tooltips with just CSS ~1kb
https://github.com/filipelinhares/fooltips

css tooltip-library tooltips

Last synced: 5 days ago
JSON representation

💬 Tooltips with just CSS ~1kb

Awesome Lists containing this project

README

        

# fooltips [![npm version](https://img.shields.io/npm/v/fooltips.svg)](https://www.npmjs.com/package/fooltips) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/fooltips)

## Usage

```html
Simple text
```

## Attributes

**Base**
- `data-tooltip`

**Direction**
- `data-tooltip="top"`
- `data-tooltip="top-right"`
- `data-tooltip="top-left"`
- `data-tooltip="left"`
- `data-tooltip="right"`
- `data-tooltip="bottom-right"`
- `data-tooltip="bottom-left"`
- `data-tooltip="bottom"`

**Multiline**
- `data-tooltip-multiline`

**States**
- `data-is-tooltiped`

### Classes
**States**
- `is-tooltiped`

### Variables
```css
:root {
--tooltip-multiline-width: 250px;
--tooltip-background-color: rgba(0, 0, 0, .8);
--tooltip-color: #fff;
--tooltip-padding: 5px 8px;
--tooltip-border-radius: 4px;
--tooltip-font-size: 0.7rem;
--tooltip-z-index: 10;
--tooltip-content: aria-label;
}
```

## License

[MIT](LICENSE.md) © Filipe Linhares