@tapie-kr/inspire-react
Version:
React Component Collection for INSPIRE
21 lines (18 loc) • 930 B
JavaScript
/* eslint-disable */
/*
* INSPIRE : Creative Kit
* React Component Collection for INSPIRE
*
* This file is generated automatically. Do not modify it manually
* Generated at : 2025. 3. 4. 오후 6:18:13
* @tapie-kr/inspire-react version: 0.2.15
*
* (c) 2025 TAPIE. All rights reserved.
* MIT License
*/
import { jsx } from 'react/jsx-runtime';
import { content, container, fullHeight, fullWidth } from './styles.css.js';
import cn from '../../../../_virtual/index.js';
import { Box } from '../Box/index.js';
function AspectRatio(props){const{ratio,width,height,fullWidth: fullWidth$1,fullHeight: fullHeight$1,className,children}=props;const classNames=[container,className,{[fullWidth]:fullWidth$1,[fullHeight]:fullHeight$1}];return jsx(Box,{className:cn(classNames),style:{width,height,aspectRatio:ratio},children:jsx(Box,{fullWidth:true,fullHeight:true,className:content,children:children})})}
export { AspectRatio };