Appearance
AspectRatio
Khóa tỷ lệ khung hình của child.
ts
import { AspectRatio } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { AspectRatio } from "@minap/ui";
export function Example() {
return (
<>
<AspectRatio ratio={16 / 9} className="rounded-md bg-muted" />
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
ratio | number | 1 | width/height |