KTooltip
A simple text popup tip.
Install
bash
pnpm add @ikun-ui/tooltip
pnpm add @ikun-ui/tooltip
bash
yarn add @ikun-ui/tooltip
yarn add @ikun-ui/tooltip
bash
npm install @ikun-ui/tooltip
npm install @ikun-ui/tooltip
Basic usage
Different placement
Specify different display positions through the placement
attribute
Different triggers
Specify different trigger methods through the trigger
attribute
Tooltip Props
Name | Type | Default | Description |
---|---|---|---|
placement | 'top' / 'left' / 'right' / 'bottom' | top | Where the tooltip appears |
trigger | 'manual' / 'click' / 'hover' | hover | How tooltip are triggered |
cls | string | - | Additional class |
attrs | any | {} | Additional attributes |
content | string | - | tooltip 's content |
Tooltip Slots
Name | Description |
---|---|
triggerEl | Trigger element for tooltip |