AspectRatio
A container that constrains its content to a fixed aspect ratio.
beta
API
import AspectRatio from '@tcpsystems/ui/foundation/AspectRatio';| Prop | Type | Default |
|---|---|---|
ratio | number | none |
| Snippet |
|---|
children |
| Hook | Kind |
|---|---|
.tcp-aspect | Root class |
A container that constrains its content to a fixed aspect ratio.
import AspectRatio from '@tcpsystems/ui/foundation/AspectRatio';| Prop | Type | Default |
|---|---|---|
ratio | number | none |
| Snippet |
|---|
children |
| Hook | Kind |
|---|---|
.tcp-aspect | Root class |