Skip to content

Commit

Permalink
Fix AspectRatio children prop passing (#5864)
Browse files Browse the repository at this point in the history
After fd49482 we stop passing children
to the component.
  • Loading branch information
mendrew authored and actions-user committed Sep 25, 2023
1 parent 6088588 commit 7806393
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vkui/src/components/AspectRatio/AspectRatio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface AspectRatioProps extends HTMLAttributesWithRootRef<HTMLDivEleme
* По умолчанию, вложенный контент будет растягиваться и заполнять весь блок.
*/
mode?: 'stretch' | 'none';
children: React.ReactNode;
/**
* Например 16 / 9, 4 / 3, 1920 / 1080
*/
Expand All @@ -20,13 +19,12 @@ export interface AspectRatioProps extends HTMLAttributesWithRootRef<HTMLDivEleme
/**
* `AspectRatio` позволяет поддерживать постоянное соотношение ширины и высоты.
* Его можно использовать для отображения изображений, карт, видео и других медиафайлов.
* @since 5.5.0
* @see https://vkcom.github.io/VKUI/#/AspectRatio
*/
export function AspectRatio({
ratio,
children,
mode = 'stretch',
style: styleProp,
...props
Expand Down

0 comments on commit 7806393

Please sign in to comment.