UNPKG

@rc-component/notification

Version:
9 lines (8 loc) 373 B
import * as React from 'react'; import type { StackConfig } from '../useStack'; /** * Calculates each notification's position and the full list height. */ export default function useListPosition(configList: { key: React.Key; }[], stack?: StackConfig, gap?: number): readonly [Map<string, number>, (key: string, node: HTMLDivElement) => void, number, number, number];