Socket
Socket
Sign inDemoInstall

streamlit-cld-product-gallery-widget

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-cld-product-gallery-widget

Streamlit component that allows you to embed Cloudinary's Product Gallery Widget into your application.


Maintainers
1

Streamlit component that allows you to embed Cloudinary's Product Gallery Widget into your application.

Installation instructions

pip install streamlit_cld_product_gallery_widget

Usage instructions

import streamlit as st

from streamlit_cld_product_gallery_widget import cld_product_gallery_widget

cld_product_gallery_widget(
    cloud_name = 'demo',
    mediaAssets=[{'tag':'logo'}]
)

Detailed Usage

Cloudinary's Product Gallery is an interactive user interface for displaying your products to your users on your website or application. In this Streamlit app, we expose a few of the available options for the product gallery. For full details, please refer to the api documentation.

ParameterPurposeDefault Value
cloud_nameName of your Cloudinary product environmentNone. Required value
mediaAssetsPopulates the widget with all the media assets given as an array of assets. The individual assets in the array can be described either by an Asset object or by a PublicID string (as a shortcut for images only).None. Required value
placeholderImageWhether to load and display a low-quality blurred placeholder image while waiting for the higher quality image, instead of a loading spinner.TRUE
sortPropsAn object that defines how to sort the assets for display in the Product Gallery.{ "source": "public_id", "direction": "asc" }
viewportBreakpointsAn array of breakpoints for the viewport (browser window), together with the Product Gallery configuration parameters to override when the width of the Product Gallery widget is less than the given breakpointNone
aspectRatioThe aspect ratio of the main viewer."square"
imageBreakpointThe step size for rounding up the width of responsive images in pixels.250
videoBreakpointThe step size for rounding up the width of responsive videos in pixels.250
preloadAn array indicating which media assets should be preloaded into the browser cache when the Product Gallery widget is initialized. [] indicates load the first image[]
transitionThe effect to apply while transitioning between assets.slide
zoomWhether to activate the zoom functionality for images.TRUE

FAQs


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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc