pull/326/head
Cory LaViska 2021-02-08 11:01:47 -05:00
rodzic dc0edc597f
commit 63fdf71010
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -163,14 +163,14 @@ To override it globally, set it in a root block in your stylesheet after `shoela
}
```
### Custom content
### HTML in Tooltips
Use the `content` slot to pass an element to the tooltip.
Use the `content` slot to create tooltips with HTML content.
```html preview
<sl-tooltip>
<div slot="content">I'm not <strong>just</strong> a tooltip, I'm a <em>tooltip</em> with HTML!</div>
<sl-button>Hover me</sl-button>
<strong slot="content">Bolded content</strong>
</sl-tooltip>
```