@theme-ui/components
Version:
Primitive layout, typographic, and other components for use with Theme UI.
11 lines (10 loc) • 352 B
TypeScript
import { ImageProps } from './Image';
import type { ForwardRef } from './types';
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>;