@theme-ui/components
Version:
Primitive layout, typographic, and other components for use with Theme UI.
11 lines (10 loc) • 349 B
TypeScript
import { BoxProps } from './Box';
import type { ForwardRef } from './types';
export interface AspectRatioProps extends BoxProps {
ratio?: number;
}
/**
* Component for maintaining a fluid-width aspect ratio
* @see https://theme-ui.com/components/aspect-ratio
*/
export declare const AspectRatio: ForwardRef<HTMLDivElement, AspectRatioProps>;