@eviljs/reactx
Version:
Awesome React UI Widgets
11 lines (10 loc) • 429 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Box } from '@eviljs/react/box';
import { classes } from '@eviljs/react/classes';
export function AspectRatio(props) {
const { className, width, height, style, ...otherProps } = props;
return (_jsx(Box, { ...otherProps, className: classes('AspectRatio-a4fe', className), style: {
'--AspectRatio': height / width,
...style,
} }));
}