mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-16 23:30:27 +05:30
30 lines
614 B
Vue
30 lines
614 B
Vue
<template>
|
|
<div id="container" class="w-full">
|
|
<div :class="icon" class="cursor-pointer"></div>
|
|
<p id="tooltip" class="absolute mr-[20vw] mt-2 hidden rounded-l bg-gray-800 px-2 py-1 text-gray-200">
|
|
{{ tooltip }}
|
|
</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
icon: {
|
|
type: String, // the class name of a font awesome icon
|
|
required: true,
|
|
},
|
|
tooltip: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
#container:hover #tooltip {
|
|
display: block;
|
|
}
|
|
</style>
|