# Tooltips
Display prompt information for mouse hover.
---
##How to use
There are 9 ways to display your prompt information multi-formly. You could get it by the demo below.
:::demo
Use attribute `content` to set the display content when hover. The attribute `placement` determines the position of the tooltip. Its value is `[oritation]-[Alignment]` with four oritations `top`,`left`, `right`,`bottom` and three alignments `start`,`end`, null, default alignment is null.
Look at the code `placement="left-end"`, with this code in tooltip component you will see the prompt information will display on the left to the element which you are hovering and bottom of the tooltip aligns with the bottom of the element which you are hovering.
```html
top-start
top
top-end
left-start
left
left-end
right-start
right
right-end
bottom-start
bottom
bottom-end
```
:::
### Theme
Tooltip has two themes:`dark` and `light`。
:::demo
Set `effect` to modify theme, default value is `dark`.
```html
Dark
Light
```
:::
### More Content
Display multiple lines of text or set format of the text .
:::demo
Distribute task of the attribute `content` to the ‘Signature’ `slot` as an alternative.
```html
multiple lines
second line
Top center
```
:::
### Advanced Extensions
In addition to basic usages, there are some attributes that allow you to customize your own :
`transition` attribute allows you to customerize the animation in which the tooltip shows or hides , default value is `fade-in-linear`.
`disabled` attribute allows you disable the `tooltip` 's prompt function. You just only set it to `boolean` type with value `true`.
Actually it is an extension based on [Vue-popper](https://github.com/element-component/vue-popper), you can use any attribute that are allowed in Vue-popper.
Of cause, component Tooltip is powerful. You can see API below.
:::demo
```html
click to close tooltip function
```
:::
### Attributes
| Attribute | Description | Type | Options | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| effect | themes authrozied | String | `dark`, `light` | dark |
| content | display content, `slot#content` insert it into DOM by `slot#content` | String | — | — |
| placement | position of Tooltip | String | `top`, `top-start`, `top-end`, `bottom`, `bottom-start`, `bottom-end`, `left`, `left-start`, `left-end`, `right`, `right-start`, `right-end` | bottom |
| value(v-model) | status show or not | Boolean | — | false |
| disabled | Tooltip work or not | Boolean | — | false |
| offset | offset of the position | Number | — | 0 |
| transition | define gradient animation | String | — | `fade-in-linear` |
| visible-arrow | display Tooltip arrow or not, more info go to [Vue-popper](https://github.com/element-component/vue-popper) page | Boolean | — | true |
| options | [popper.js](https://popper.js.org/documentation.html) paramters | Object | refer to [popper.js](https://popper.js.org/documentation.html) doc | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| openDelay | show in delay, unit is millisecond | Number | — | 0 |