Skip to content

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 / APITypeDefaultNotes
rationumber1width/height

MINAP UI — Soft Periwinkle light, Mobile-First