bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
39 lines • 1.25 kB
TypeScript
import type { ComponentProps } from "react";
import { Avatar } from "../ui/avatar.js";
export interface BitcoinAvatarProps extends Omit<ComponentProps<typeof Avatar>, "children"> {
/**
* Image source - can be blockchain URL (b://, ord://, etc.) or regular URL
*/
src?: string;
/**
* Alt text for accessibility
*/
alt: string;
/**
* Fallback text when image is not available
*/
fallback: string;
/**
* Show loading state for image resolution
*/
showLoading?: boolean;
/**
* Timeout for Bitcoin URL resolution (ms)
*/
timeout?: number;
/**
* Size variant for the avatar
*/
size?: "sm" | "default" | "lg" | "xl";
}
/**
* BitcoinAvatar combines shadcn/ui Avatar with Bitcoin image resolution
*
* Features:
* - Uses shadcn/ui Avatar components for consistent styling
* - Resolves Bitcoin URLs (b://, ord://, etc.) via BitcoinImage
* - Proper fallback handling with initials
* - Size variants with Tailwind classes
*/
export declare function BitcoinAvatar({ src, alt, fallback, showLoading, timeout, size, className, ...avatarProps }: BitcoinAvatarProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=BitcoinAvatar.d.ts.map