Tooltip Component
Tooltip Component with Skeuomorphism style, Complementary color scheme, Simple complexity, for E-commerce.
HTML Code
<div class="relative inline-block">
<button class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded shadow-md dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-gray-200">Hover over me</button>
<div class="hidden absolute z-10 px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-700 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-600">
Tooltip content
<div class="tooltip-arrow"></div>
</div>
</div>
<style>
.tooltip:hover + div {
display: block;
opacity: 1;
}
.tooltip-arrow,
.tooltip-arrow:after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip-arrow {
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-bottom-color: #4a5568;
}
.dark .tooltip-arrow {
border-bottom-color: #4a5568;
}
.tooltip-arrow:after {
bottom: 1px;
margin-left: -5px;
border-width: 5px;
border-bottom-color: #4a5568;
}
.dark .tooltip-arrow:after {
border-bottom-color: #4a5568;
}
</style>
Related Components
Memphis_Real_Estate_Tooltip
A simple, responsive tooltip component for real estate applications, featuring a Memphis Design inspired aesthetic with a monochrome base and a vibrant accent color. Includes dark mode support.
Skeuomorphic Tooltip Component
A responsive tooltip component designed with skeuomorphism and vibrant colors, suitable for blogs and content consumption. It includes dark theme support using Tailwind CSS.
3D_Real_Estate_Tooltip
A moderately complex, responsive tooltip component with 3D design elements and a warm sunset color scheme, suitable for real estate property listings. Includes dark mode support.