@interop-ui/react-aspect-ratio
Advanced tools
Comparing version 0.0.1-14 to 0.0.1-15
{ | ||
"name": "@interop-ui/react-aspect-ratio", | ||
"version": "0.0.1-14", | ||
"version": "0.0.1-15", | ||
"license": "MIT", | ||
@@ -20,4 +20,4 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@interop-ui/react-polymorphic": "0.0.1-1", | ||
"@interop-ui/utils": "0.0.1-6" | ||
"@interop-ui/react-polymorphic": "0.0.1-2", | ||
"@interop-ui/utils": "0.0.1-7" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
@@ -13,17 +13,2 @@ # `react-aspect-ratio` | ||
```js | ||
import * as React from 'react'; | ||
import { AspectRatio } from '@interop-ui/react-aspect-ratio'; | ||
function MyComponent() { | ||
return ( | ||
<AspectRatio ratio={2 / 1}> | ||
<img | ||
src="https://picsum.photos/id/10/400/600" | ||
alt="" | ||
style={{ objectFit: 'cover', width: '100%', height: '100%' }} | ||
/> | ||
</AspectRatio> | ||
); | ||
} | ||
``` | ||
View docs [here](https://radix-ui.com/primitives/docs/components/aspect-ratio). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12041
14
+ Added@interop-ui/react-polymorphic@0.0.1-2(transitive)
+ Added@interop-ui/utils@0.0.1-7(transitive)
- Removed@interop-ui/react-polymorphic@0.0.1-1(transitive)
- Removed@interop-ui/utils@0.0.1-6(transitive)
Updated@interop-ui/utils@0.0.1-7