@brizy/ui
Version:
React elements in Brizy style
25 lines (24 loc) • 636 B
TypeScript
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 {};