UNPKG

@tapie-kr/inspire-react

Version:

React Component Collection for INSPIRE

23 lines (19 loc) 999 B
/* 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 */ 'use strict'; var jsxRuntime = require('react/jsx-runtime'); var styles_css = require('./styles.css.js'); var index$1 = require('../../../../_virtual/index.js'); var index = require('../Box/index.js'); function AspectRatio(props){const{ratio,width,height,fullWidth,fullHeight,className,children}=props;const classNames=[styles_css.container,className,{[styles_css.fullWidth]:fullWidth,[styles_css.fullHeight]:fullHeight}];return jsxRuntime.jsx(index.Box,{className:index$1.default(classNames),style:{width,height,aspectRatio:ratio},children:jsxRuntime.jsx(index.Box,{fullWidth:true,fullHeight:true,className:styles_css.content,children:children})})} exports.AspectRatio = AspectRatio;