@theme-ui/components
Version:
Primitive layout, typographic, and other components for use with Theme UI.
11 lines (10 loc) • 358 B
TypeScript
import { ImageProps } from "./Image.js";
import type { ForwardRef } from "./types.js";
export interface AspectImageProps extends ImageProps {
ratio?: number;
}
/**
* Image component constrained by as aspect ratio.
* @see https://theme-ui.com/components/aspect-image
*/
export declare const AspectImage: ForwardRef<HTMLImageElement, AspectImageProps>;