@yandex/ui
Version:
Yandex UI components
21 lines (20 loc) • 686 B
TypeScript
import React, { ComponentType, Ref } from 'react';
export interface IWrappedComponentProps {
/**
* Видимость компонента.
*/
visible?: boolean;
/**
* Ссылка на DOM элемент компонента.
*/
innerRef?: Ref<HTMLElement>;
}
export interface IWithZIndexProps extends IWrappedComponentProps {
/**
* Уровень слоев `z-index` для компонент.
*
* @defaultvalue `0`
*/
zIndexGroupLevel?: number;
}
export declare const withZIndex: <TProps extends IWrappedComponentProps>(WrappedComponent: React.ComponentType<TProps>) => React.ComponentType<TProps & IWithZIndexProps>;