bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
39 lines • 1.14 kB
TypeScript
import React from "react";
export interface BitcoinImageProps {
/**
* Image source - can be blockchain URL (b://, ord://, etc.) or regular URL
*/
src?: string;
/**
* Alt text for accessibility
*/
alt: string;
/**
* Additional styles to apply to the image
*/
style?: React.CSSProperties;
/**
* Additional CSS classes to apply to the image
*/
className?: string;
/**
* Fallback content when image fails to load
*/
fallback?: React.ReactNode;
/**
* Show loading state
*/
showLoading?: boolean;
/**
* Timeout for image loading (ms)
*/
timeout?: number;
}
/**
* BitcoinImage component that handles on-chain image resolution
*
* Automatically resolves blockchain image URLs (b://, ord://, etc.) to displayable URLs
* using the bitcoin-image library. Falls back gracefully for invalid or missing images.
*/
export declare function BitcoinImage({ src, alt, style, className, fallback, showLoading, timeout, }: BitcoinImageProps): import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=BitcoinImage.d.ts.map