@rc-component/notification
Version:
notification ui component for react
9 lines (8 loc) • 373 B
TypeScript
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];