@arche-mc2/arche-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
38 lines (37 loc) • 1.05 kB
TypeScript
import UpVisibilitySensor from './UpVisibilitySensor';
export declare type Placement = 'top' | 'right' | 'bottom' | 'left';
export interface Offset {
top: number;
left: number;
bottom: number;
right: number;
}
export interface VisibilityRect {
top: boolean;
left: boolean;
bottom: boolean;
right: boolean;
}
export interface UpVisibilitySensorProps {
onChange: (isVisible: boolean, visibilityRect: VisibilityRect) => void;
active?: boolean;
partialVisibility?: boolean | Placement;
delayedCall?: boolean;
offset?: Offset;
scrollCheck?: boolean;
scrollDelay?: number;
scrollThrottle?: number;
resizeCheck?: boolean;
resizeDelay?: number;
resizeThrottle?: number;
intervalCheck?: boolean;
intervalDelay?: number;
containment?: any;
minTopValue?: number;
forceCheck?: boolean;
}
export interface UpVisibilitySensorState {
isVisible: boolean;
visibilityRect: VisibilityRect;
}
export default UpVisibilitySensor;