UNPKG

@react-bootstrap/react-popper

Version:
45 lines (37 loc) 1.14 kB
import * as React from "react"; import * as PopperJS from "popper.js"; interface ManagerProps { children: React.ReactNode; } export class Manager extends React.Component<ManagerProps, {}> { } type RefHandler = (ref: HTMLElement | null) => void; interface ReferenceChildrenProps { ref: RefHandler; } interface ReferenceProps { children: (props: ReferenceChildrenProps) => React.ReactNode; innerRef?: RefHandler; } export class Reference extends React.Component<ReferenceProps, {}> { } interface PopperArrowProps { ref: RefHandler; style: React.CSSProperties; } interface PopperChildrenProps { arrowProps: PopperArrowProps; outOfBoundaries: boolean | null; placement: PopperJS.Placement; ref: RefHandler; scheduleUpdate: () => void; style: React.CSSProperties; } interface PopperProps { children: (props: PopperChildrenProps) => React.ReactNode; eventsEnabled?: boolean; innerRef?: RefHandler; modifiers?: PopperJS.Modifiers; placement?: PopperJS.Placement; positionFixed?: boolean; referenceElement?: PopperJS.ReferenceObject; } export class Popper extends React.Component<PopperProps, {}> { }