Monospace_Developer_Tooltip_Component_Healthcare
Un composant d’info-bulle simple, inspiré du monospace, avec des tons chauds de coucher de soleil, conçu pour les applications de santé. Dispose d’un design réactif et d’une prise en charge du mode sombre.
HTML Code
<div class="relative flex items-center justify-center p-4 bg-gray-100 dark:bg-gray-900 min-h-[200px] font-mono">
<!-- Tooltip Container -->
<div class="group relative inline-block">
<!-- Trigger Element (e.g., an icon or text) -->
<p class="cursor-pointer text-orange-600 dark:text-orange-400 text-sm md:text-base p-2 border border-orange-400 dark:border-orange-600 rounded-md shadow-sm transition-all duration-300 ease-in-out hover:border-orange-500 hover:shadow-md">
<svg class="inline-block mr-2 w-4 h-4 md:w-5 md:h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
Info: Patient ID
</p>
<!-- Tooltip Content -->
<div class="opacity-0 w-64 md:w-80 bg-gradient-to-br from-orange-400 to-red-500 dark:from-red-600 dark:to-yellow-700 text-white text-xs md:text-sm rounded py-2 px-3 absolute z-10 bottom-full left-1/2 -translate-x-1/2 mb-2 pointer-events-none transition-opacity duration-300 group-hover:opacity-100 shadow-lg border border-orange-300 dark:border-yellow-600 overflow-hidden break-words">
<p class="mb-1 font-bold text-yellow-100 dark:text-orange-200">Diagnosis Code Explained:</p>
<p class="text-yellow-50 dark:text-orange-50">ICD-10-CM code Z00.00 is for 'General adult medical examination without abnormal findings'.</p>
<p class="text-yellow-50 dark:text-orange-50 mt-1">Applicable for routine health check-ups.</p>
<!-- Tail for the tooltip -->
<svg class="absolute text-orange-400 dark:text-red-600 h-2 w-full left-0 bottom-[-8px]"
viewBox="0 0 255 125" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M0 125L127.5 0L255 125H0Z"/>
</svg>
</div>
</div>
</div>
Composants associés
Infobulle du Glassmorphism
Un composant d’info-bulle conçu avec le style glassmorphism, prenant en charge le thème sombre et le design réactif, adapté aux interfaces de médias sociaux.
Composant d’info-bulle
Un composant d’info-bulle neumorphe avec une palette de couleurs complémentaire, une complexité modérée et une conception réactive avec prise en charge du thème sombre, adapté à un blog ou à la consommation de contenu.
Infobulle de commerce électronique pastel minimaliste
Composant d’info-bulle pastel minimaliste pour le commerce électronique, avec un design réactif et une prise en charge du mode sombre.