Dev Design Library

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.

Image Dark preview
Library
SpaceUI
Framework
React
Type
component
License
MIT
Files
  • src/registry/components/spaceui/image-dark/index.tsx
  • src/registry/lib/utils/index.ts
Source
https://github.com/usespaceui/ui

Categories

More from SpaceUI