No aspect ratio selector in a custom block

Per the developer handbook:

This value signals that a block supports some of the CSS style properties related to dimensions. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

So in your theme you’ll need to declare support either by setting appearanceTools to true in theme.json or the legacy way using add_theme_support( 'appearance-tools' ) in functions.php.

tech