@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
23 lines (22 loc) • 1.16 kB
TypeScript
import { Ref } from "react";
import { Props } from "./Image.types";
export declare const ImageWithoutRef: ({ innerRef, imageHeight, imageWidth, width, ...restProps }: {
src: string;
imageWidth?: string | number | undefined;
imageHeight?: string | number | undefined;
alt?: string | undefined;
radius?: import("@mantine/core").MantineSize | undefined;
caption?: import("react").ReactNode;
fit?: "contain" | "cover" | undefined;
} & import("../layout/layout.types").CommonLayoutProps & import("../styling.types").CommonStylingProps & {
innerRef: Ref<HTMLDivElement>;
}) => import("react/jsx-runtime").JSX.Element;
export declare const Image: import("react").ForwardRefExoticComponent<{
src: string;
imageWidth?: string | number | undefined;
imageHeight?: string | number | undefined;
alt?: string | undefined;
radius?: import("@mantine/core").MantineSize | undefined;
caption?: import("react").ReactNode;
fit?: "contain" | "cover" | undefined;
} & import("../layout/layout.types").CommonLayoutProps & import("../styling.types").CommonStylingProps & import("react").RefAttributes<HTMLDivElement>>;