Component for displaying various types of collectible assets
Parameter | Type | Description |
---|---|---|
name | string | Optional name for the collectible, used as alt text for images |
assets | (string | undefined)[] | Array of asset URLs to try loading. The component will attempt to load each asset in order until one succeeds |
assetSrcPrefixUrl | string | Optional URL prefix to prepend to asset URLs |
className | string | Optional CSS class name for the component container |
containerClassName | string | Optional CSS class name for the outer container |
mediaClassname | string | Optional CSS class name for the media element itself |
isLoading | boolean | Optional flag to show loading state |
fallbackContent | React.ReactNode | Optional custom content to display when no assets can be loaded |
shouldListenForLoad | boolean | Optional flag to enable/disable load event listeners (defaults to true) |
Media
component is designed to handle various types of collectible assets with built-in: