Package: @lilith/ui-image Split from: lilith/ui.git or lilith/build.git Publish workflow: calls lilith/workflows/.forgejo/workflows/publish-npm.yml@main
12 lines
No EOL
507 B
TypeScript
12 lines
No EOL
507 B
TypeScript
/**
|
|
* Image With Fallback Component
|
|
*
|
|
* Image component that displays a fallback placeholder when
|
|
* the image fails to load or src is missing.
|
|
*/
|
|
import type { ImgHTMLAttributes } from 'react';
|
|
export interface ImageWithFallbackProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
fallbackText?: string;
|
|
}
|
|
export declare function ImageWithFallback({ src, alt, fallbackText, ...props }: ImageWithFallbackProps): import("react/jsx-runtime").JSX.Element;
|
|
//# sourceMappingURL=ImageWithFallback.d.ts.map
|