hair-ui
Version:
A Minimalist Component Library For React.
12 lines (11 loc) • 371 B
TypeScript
import React from "react";
export interface ImageProps {
src?: string;
fit?: "none" | "cover" | "contain" | "scale-down" | "fill";
alt?: string;
width?: number | string;
height?: number | string;
className?: string;
style?: React.CSSProperties;
}
export declare function Image({ src, alt, fit, className, ...props }: ImageProps): JSX.Element;