UNPKG

@brizy/ui

Version:
25 lines (24 loc) 636 B
import { ReactElement, ReactNode } from "react"; type Type = "boxed" | "upload"; type Fit = "contain" | "cover"; export interface CaptionProps { width?: string; height?: string; align?: "left" | "center" | "right"; alignY?: "top" | "center" | "bottom"; content: ReactNode; } export interface Props { src?: string; alt?: string; caption?: CaptionProps | ReactNode; fit?: Fit; width?: string; height?: string; placeholder?: ReactElement; type?: Type; rounded?: boolean; onError?: VoidFunction; } export declare const ImageWithCaption: (props: Props) => ReactElement; export {};