Aspect Ratio
A component for maintaining consistent width-to-height ratios across different screen sizes.
Source Tailwind CSS

Installation
templui add aspectratioAPI Reference
Required parameter
Hover for description
AspectRatio
Component for maintaining consistent width-to-height ratios across different screen sizes.
| Name | Type | Default |
|---|---|---|
Unique identifier for the aspect ratio element. | | - |
Additional CSS classes to apply to the aspect ratio container. | | - |
Additional HTML attributes to apply to the aspect ratio element. | | - |
Aspect ratio preset. Options: 'auto', 'square', 'video', 'portrait', 'wide'. | | |