spiketip.min.css
into your HTML:<link rel="stylesheet" href="path/to/spiketip.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/spiketip-tooltip@1.0.6/spiketip.min.css">
spiketip-title
and spiketip-pos
to your HTML elements:<button spiketip-title="I'm a SpikeTip tooltip!" spiketip-pos="top">Hover Me!</button>
npm install spiketip-tooltip
import 'spiketip-tooltip/spiketip.min.css';
Position | Code | Demo |
---|---|---|
Top | spiketip-pos="top" |
|
Bottom | spiketip-pos="bottom" |
|
Right | spiketip-pos="right" |
|
Left | spiketip-pos="left" |
|
Top-Right | spiketip-pos="top-right" |
|
Top-Left | spiketip-pos="top-left" |
|
Bottom-Right | spiketip-pos="bottom-right" |
|
Bottom-Left | spiketip-pos="bottom-right" |
Color | Code | Demo |
---|---|---|
Success | spiketip-color="success" |
|
Error | spiketip-color="error" |
|
Warning | spiketip-color="warning" |
|
info | spiketip-color="info" |
Size | Code | Demo |
---|---|---|
Small | spiketip-length="sm" |
|
Medium | spiketip-length="md" |
|
Large | spiketip-length="lg" |
|
Extra Large | spiketip-length="xl" |
|
Auto | spiketip-length="auto" |