AspectRatio

    AspectRatio

    Default 16∶9

    Prop ratio omitted — 16 / 9 is used.

    Sample

    Square

    ratio={"{1}"} for a 1∶1 ratio.

    Square

    Custom ratio

    Any number = width / height (here a wide canvas 2.39). ```tsx import { AspectRatio } from "~/components/ui/base/aspect-ratio";

    Cinematic ratio 2.39 : 1

    Content instead of an image

    Metadata

    Source: meta.generated.json (see npm run generate)

    File base/aspect-ratio/meta.generated.json not found or path not allowed.