refactor: Small refactoring Tooltip component
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<template>
|
||||
<div class="flex flex-wrap justify-center py-8 space-x-3">
|
||||
<!-- light style tooltip -->
|
||||
<Tooltip tooltip-style="tooltip-light">
|
||||
<Tooltip theme="light">
|
||||
<template #trigger>
|
||||
<button type="button"
|
||||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
Light Tooltip
|
||||
<button
|
||||
type="button"
|
||||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
||||
>
|
||||
Light Tooltip
|
||||
</button>
|
||||
</template>
|
||||
<template #content>
|
||||
@@ -13,11 +15,13 @@
|
||||
</template>
|
||||
</Tooltip>
|
||||
<!-- dark style tooltip -->
|
||||
<Tooltip tooltip-style="tooltip-dark">
|
||||
<Tooltip theme="dark">
|
||||
<template #trigger>
|
||||
<button type="button"
|
||||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
Dark Tooltip
|
||||
<button
|
||||
type="button"
|
||||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
||||
>
|
||||
Dark Tooltip
|
||||
</button>
|
||||
</template>
|
||||
<template #content>
|
||||
@@ -29,4 +33,4 @@
|
||||
|
||||
<script setup>
|
||||
import { Tooltip } from '../../../../src/index'
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user