nano-jsx
Version:
SSR first, lightweight 1kB JSX library.
22 lines • 616 B
TypeScript
import { Component } from '../component.js';
interface Props {
[key: string]: any;
src: string;
height?: number | string;
width?: number | string;
lazy?: boolean;
placeholder?: any;
}
/**
* A useful Image component
* Add <Img lazy ..., to lazy load the img source
* Add <Img width="100" height="100" ..., to specify img element's size.
* Add <Img placeholder="src or element" ...., to prepare placeholder for img.
*/
export declare class Img extends Component<Props> {
constructor(props: Props);
didMount(): void;
render(): any;
}
export {};
//# sourceMappingURL=img.d.ts.map