Skip to content

Commit

Permalink
add missing media aspect ratios util
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgulbis committed Dec 9, 2024
1 parent c14f64e commit 9a17879
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions demo/admin/src/util/mediaAspectRatios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { StandaloneMediaBlockData } from "@src/blocks.generated";
import { ReactNode } from "react";

export const mediaAspectRatioOptions: Array<{
value: StandaloneMediaBlockData["aspectRatio"];
label: ReactNode;
}> = [
{ label: "16:9", value: "16x9" },
{ label: "4:3", value: "4x3" },
{ label: "3:2", value: "3x2" },
{ label: "3:1", value: "3x1" },
{ label: "2:1", value: "2x1" },
{ label: "1:1", value: "1x1" },
{ label: "1:2", value: "1x2" },
{ label: "1:3", value: "1x3" },
{ label: "2:3", value: "2x3" },
{ label: "3:4", value: "3x4" },
{ label: "9:16", value: "9x16" },
];

0 comments on commit 9a17879

Please sign in to comment.