Aspect Ratio
Displays content within a desired ratio.
Installation
shell
php artisan ui:add aspect-ratioUsage
vue
<template>
<div class="w-[450px]">
<AspectRatio :ratio="16 / 9">
<img src="..." alt="Image" class="rounded-md object-cover w-full h-full">
</AspectRatio>
</div>
</template>
<script setup lang="ts">
import { AspectRatio } from '@/Components/AspectRatio'
</script>