@unpic/solid
Version:
SolidJS component for responsive, high-performance images.
11 lines (7 loc) • 693 B
TypeScript
import { Operations, UnpicBaseImageProps, UnpicBaseSourceProps } from '@unpic/core/base';
import { JSX } from 'solid-js/jsx-runtime';
type ImageProps<TOperations extends Operations, TOptions> = UnpicBaseImageProps<TOperations, TOptions, JSX.ImgHTMLAttributes<HTMLImageElement>>;
declare function Image<TOperations extends Operations, TOptions>(props: ImageProps<TOperations, TOptions>): JSX.Element;
type SourceProps<TOperations extends Operations, TOptions> = UnpicBaseSourceProps<TOperations, TOptions>;
declare function Source<TOperations extends Operations, TOptions>(props: SourceProps<TOperations, TOptions>): JSX.Element;
export { Image, type ImageProps, Source, type SourceProps };