Tooltip
<sc-tooltip></sc-tooltip>
This component let users add tooltip.
- Preview
- Code
<sc-tooltip text="Sample tooltip!" type="info"><sc-button type="text">Hover Me!</sc-button></sc-tooltip>
Component Codex
Properties
| Property | Description | Type | Default |
|---|---|---|---|
| freeze | Freeze open or closed. | boolean | |
| open | Open or not | boolean | |
| padding | The tooltip's padding. | number | 5 |
| text | Tooltip text | string | |
| type | The tooltip's type. | "danger" | "info" | "primary" | "success" | "text" | "warning" | 'info' |
| width | Tooltip fixed width | string |
Shadow Parts
| Part | Description |
|---|---|
base | The elements base wrapper. |
text | The tooltip text. |