zarm
Version:
基于 React 的移动端UI库
17 lines (16 loc) • 604 B
TypeScript
import React from 'react';
import type { HTMLProps } from '../utils/utilityTypes';
import type { BaseAffixProps } from './interface';
export interface AffixCssVars {
'--zindex'?: React.CSSProperties['zIndex'];
}
export interface AffixStates {
affixed: boolean;
width: number;
height: number;
}
export declare type AffixProps = BaseAffixProps & React.PropsWithChildren<HTMLProps<AffixCssVars>>;
declare const Affix: React.ForwardRefExoticComponent<BaseAffixProps & HTMLProps<AffixCssVars> & {
children?: React.ReactNode;
} & React.RefAttributes<HTMLDivElement>>;
export default Affix;