Skip to content

Commit

Permalink
feat(AspectRatio): extend props from RootComponent (#7148)
Browse files Browse the repository at this point in the history
* feat(AspectRatio): extend props from RootComponent

* fix: omit baseClassName
  • Loading branch information
BlackySoul authored Jul 15, 2024
1 parent 8ca0d4e commit f6a2929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vkui/src/components/AspectRatio/AspectRatio.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from 'react';
import { classNames } from '@vkontakte/vkjs';
import { CSSCustomProperties, HTMLAttributesWithRootRef } from '../../types';
import { RootComponent } from '../RootComponent/RootComponent';
import { CSSCustomProperties } from '../../types';
import { RootComponent, RootComponentProps } from '../RootComponent/RootComponent';
import styles from './AspectRatio.module.css';

export interface AspectRatioProps extends HTMLAttributesWithRootRef<HTMLDivElement> {
export interface AspectRatioProps extends Omit<RootComponentProps<HTMLElement>, 'baseClassName'> {
className?: string;
/**
* По умолчанию, вложенный контент будет растягиваться и заполнять весь блок.
Expand Down

0 comments on commit f6a2929

Please sign in to comment.