UNPKG

@eviljs/reactx

Version:
11 lines (10 loc) 429 B
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, } })); }