Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sharu725/sv-tooltip

A tooltip utility for Svelte and Sveltekit
https://github.com/sharu725/sv-tooltip

svelte svelte-tooltip tooltip

Last synced: 2 months ago
JSON representation

A tooltip utility for Svelte and Sveltekit

Awesome Lists containing this project

README

        

## Svelte Tooltip

```svelte

import Tooltip from "sv-tooltip"

Hello

```

### Installation

```bash
npm i -D sv-tooltip
```

### Active Tooltip

```svelte

Hello

```

### Component Tooltip

```svelte

Hello

```

### Text Tooltip

```svelte


Something weird happened
last night


```

### Colored Tooltip

```svelte


Something


```

### Pass HTML to tip

```svelte

A button

```

| props | function |
| :------: | :--------------------------------------: |
| `top` | show tooltip at top |
| `right` | show tooltip at right |
| `bottom` | show tooltip at bottom |
| `left` | show tooltip at left |
| `active` | show tooltip by default |
| `color` | hex value to change the color of tooltip |