Package Exports
- @real-system/aspect-ratio
- @real-system/aspect-ratio/lib/index.js
- @real-system/aspect-ratio/lib/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@real-system/aspect-ratio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@real-system/aspect-ratio
Aspect ratio component for real system used for sizing media e g image video map.
Installation
# install peer dependencies
# npm
$ npm install react react-dom @real-system/elements-primitive @real-system/styled-library @real-system/utils-library
# yarn
$ yarn add react react-dom @real-system/elements-primitive @real-system/styled-library @real-system/utils-library
# install aspect-ratio
# npm
$ npm install @real-system/aspect-ratio
# yarn
$ yarn add @real-system/aspect-ratio
Code Example
import { AspectRatio } from '@real-system/aspect-ratio';
...