🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@rime-ui/suspensible-image

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rime-ui/suspensible-image

A React image component with smooth skeleton loading

latest
Source
npmnpm
Version
0.0.14
Version published
Maintainers
1
Created
Source

Suspensible Image

Make Your Image Loading Smooth and Faster with a Clean Skeleton Loader

When working with images in React, it's important to provide a smooth loading experience for users. One effective way to do this is by using a skeleton loader while the image is being fetched. This approach improves user experience by avoiding blank spaces and providing a placeholder until the image is ready.

Important Note:

  • React 19 Required.
  • No SSR Support.

Key Benefits:

  • Skeleton Loading: Provides visual feedback during image loading with an animated shimmer effect.
  • React 19 Suspense: Uses React's latest Suspense API for handling asynchronous operations.
  • Built-in Caching: Stores previously loaded images to avoid redundant network requests

How to Use:

import { Suspense } from "react";
import { SuspensibleImage, Skeleton } from "@rime-ui/suspensible-image";
import "@rime-ui/suspensible-image/dist/index.css";

function MyComponent() {
  return (
    <Suspense fallback={<Skeleton />}>
      <SuspensibleImage src="https://example.com/image.jpg" alt="Description" />
    </Suspense>
  );
}

FAQs

Package last updated on 02 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts