@coreui/react-pro
Version:
UI Components Library for React.js
8 lines (7 loc) • 655 B
TypeScript
import React from 'react';
import type { Placement } from '@popperjs/core';
import type { Placements } from '../../types';
import type { Alignments } from './types';
export declare const getAlignmentClassNames: (alignment: Alignments) => string[];
export declare const getPlacement: (placement: Placement, direction: string | undefined, alignment: Alignments | string | undefined, isRTL: boolean) => Placements;
export declare const getReferenceElement: (reference: "parent" | "toggle" | React.RefObject<HTMLElement | null> | HTMLElement, dropdownToggleElement: HTMLElement | null, dropdownRef: React.RefObject<HTMLElement | null>) => HTMLElement | null;