Skip to content

Image Dark

An adaptive image component that dynamically switches between light and dark mode sources using standard HTML img elements with zero layout shift and no hydration mismatch.

1.2 KB
•
Updated on August 29, 2026

Installation

Bash

Usage

Code
Code

API Reference

ImageDark Props

ImageDark accepts all standard HTML <img> element attributes (width, height, loading, decoding, alt, className, etc.) along with the following:


Card Integration

Use standard image sizing and container styling inside cards, hero banners, or device mockups.

Keep in mind

  • MIT License: Free and open-source for personal and commercial use. Feel free to copy, tweak, and adapt the components to match your exact needs.
  • Credits & Inspiration: Some components on this site are inspired by or recreated from great ideas across the web. I'm not here to take credit; just to learn, experiment, and push interface craft further.
  • Reach out & Claims: If an attribution was missed, or if you have any inquiry or claim, feel free to reach out directly on X to @adrielzimbril. I'll be glad to update or resolve it right away.