v14.0.8


widgets

Aspect ratio

Displays content within a desired ratio.

Features

  • Accepts any CSS custom ratio.
Content

Anatomy

import { AspectRatio } from "@wonderflow/react-components";
export default () => { return (
<AspectRatio ratio="16/9">
<div>...</div>
</AspectRatio>
); };

tsx

API Reference

PROPERTY
TYPE
DEFAULT
ratio*
string

Created by Wonderflow Design Team for Wonderflow.

© Wonderflow 2024