🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

siro-media-library

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siro-media-library

A comprehensive React media library component for managing images, videos, and files with drag-and-drop functionality, folder organization, and search capabilities.

latest
npmnpm
Version
0.4.7
Version published
Weekly downloads
67
103.03%
Maintainers
2
Weekly downloads
 
Created
Source

Siro Media Library

A comprehensive React media library component for managing images, videos, and files with drag-and-drop functionality, folder organization, and search capabilities.

Installation

npm install siro-media-library

Usage

Basic Implementation

import React, { useState } from 'react';
import MediaIndex from 'siro-media-library';

function App() {
  const [selectedImage, setSelectedImage] = useState(null);

  const handleImageSelect = (image) => {
    setSelectedImage(image);
    console.log('Selected image:', image);
  };

  const handleCancel = () => {
    // Handle modal close
  };

  return (
    <div>
      <MediaIndex
        page={true}
        setImage={handleImageSelect}
        onCancel={handleCancel}
        open={true}
        type="image"
      />
    </div>
  );
}

Styling

The component uses styled-components and supports theme customization. You can override the default theme by passing a theme object to the ThemeProvider.

License

MIT © yondo33

FAQs

Package last updated on 21 Oct 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